src/system/helpers.cpp - htmlEntityDecode(): Add various html codes

This commit is contained in:
M. Liebmann
2014-03-02 14:20:13 +01:00
parent 06f31f9655
commit 409df1b809

View File

@@ -425,12 +425,19 @@ std::string& htmlEntityDecode(std::string& text)
}; };
decode_table dt[] = decode_table dt[] =
{ {
{" ", " "}, {" ", " "},
{"&", "&"}, {"&", "&"},
{"<", "&lt;"}, {"<", "&lt;"},
{">", "&gt;"}, {">", "&gt;"},
{"\"", "&quot;"}, {"\"", "&quot;"},
{"'", "&apos;"}, {"'", "&apos;"},
{"", "&euro;"},
{"", "&#8211;"},
{"", "&#8220;"},
{"", "&#8221;"},
{"", "&#8222;"},
{"", "&#8226;"},
{"", "&#8230;"},
{NULL, NULL} {NULL, NULL}
}; };
for (int i = 0; dt[i].code != NULL; i++) for (int i = 0; dt[i].code != NULL; i++)