/* Optimisation: Turn this into a 256 byte table:
* then can lookup in one index, not N checks */
static const Escape escapes[] = {
- { "<ps>", _PARAGRAPH_SEPARATOR },
- { "<br>", "\n" },
- { "<\t>", "\t" },
+ { "<ps/>", _PARAGRAPH_SEPARATOR },
+ { "<br/>", "\n" },
+ { "<\t/>", "\t" },
{ ">", ">" },
{ "<", "<" },
{ "&", "&" },
pos2 = evas_string_char_next_get((char *)(text), pos2, &ch);
if ((ch <= 0) || (pos2 <= 0)) break;
if (ch == '\n')
- str = _str_append(str, "<br>", &str_len, &str_alloc);
+ str = _str_append(str, "<br/>", &str_len, &str_alloc);
else if (ch == '\t')
- str = _str_append(str, "<\t>", &str_len, &str_alloc);
+ str = _str_append(str, "<\t/>", &str_len, &str_alloc);
else if (ch == '<')
str = _str_append(str, "<", &str_len, &str_alloc);
else if (ch == '>')
else if (ch == '&')
str = _str_append(str, "&", &str_len, &str_alloc);
else if (ch == 0x2029) /* PS */
- str = _str_append(str, "<ps>", &str_len, &str_alloc);
+ str = _str_append(str, "<ps/>", &str_len, &str_alloc);
else
{
char tstr[16];