From 75b3fe663ecd6ab59dbfb96e992179b02a5bf0ba Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Sun, 2 Mar 2014 14:20:13 +0100 Subject: [PATCH] src/system/helpers.cpp - htmlEntityDecode(): Add various html codes Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/409df1b8096b2b742008f641904b9e59416375a2 Author: Michael Liebmann Date: 2014-03-02 (Sun, 02 Mar 2014) --- src/system/helpers.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index 3ab043b44..4e1152323 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -425,12 +425,19 @@ std::string& htmlEntityDecode(std::string& text) }; decode_table dt[] = { - {" ", " "}, + {" ", " "}, {"&", "&"}, {"<", "<"}, {">", ">"}, {"\"", """}, {"'", "'"}, + {"€", "€"}, + {"–", "–"}, + {"“", "“"}, + {"”", "”"}, + {"„", "„"}, + {"•", "•"}, + {"…", "…"}, {NULL, NULL} }; for (int i = 0; dt[i].code != NULL; i++)