mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
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:
@@ -425,12 +425,19 @@ std::string& htmlEntityDecode(std::string& text)
|
|||||||
};
|
};
|
||||||
decode_table dt[] =
|
decode_table dt[] =
|
||||||
{
|
{
|
||||||
{" ", " "},
|
{" ", " "},
|
||||||
{"&", "&"},
|
{"&", "&"},
|
||||||
{"<", "<"},
|
{"<", "<"},
|
||||||
{">", ">"},
|
{">", ">"},
|
||||||
{"\"", """},
|
{"\"", """},
|
||||||
{"'", "'"},
|
{"'", "'"},
|
||||||
|
{"€", "€"},
|
||||||
|
{"–", "–"},
|
||||||
|
{"“", "“"},
|
||||||
|
{"”", "”"},
|
||||||
|
{"„", "„"},
|
||||||
|
{"•", "•"},
|
||||||
|
{"…", "…"},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
for (int i = 0; dt[i].code != NULL; i++)
|
for (int i = 0; dt[i].code != NULL; i++)
|
||||||
|
Reference in New Issue
Block a user