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

Origin commit data
------------------
Commit: 409df1b809
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-03-02 (Sun, 02 Mar 2014)
This commit is contained in:
Michael Liebmann
2014-03-02 14:20:13 +01:00
parent 2b104e4105
commit 75b3fe663e

View File

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