summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-04-17 12:13:34 +0000
committerRobert Pösel <robyer@seznam.cz>2016-04-17 12:13:34 +0000
commitbf412939a21083d0f2bb4451089be645398cb418 (patch)
tree9ea53fc44cad051f50677a85a0b059b6ca87f2c2 /utils
parent1ea7cd86935d95f8d6ec91d11e7db84219400c64 (diff)
std_string_util: Add replace "&nbsp" to " "
git-svn-id: http://svn.miranda-ng.org/main/trunk@16687 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'utils')
-rw-r--r--utils/std_string_utils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/std_string_utils.cpp b/utils/std_string_utils.cpp
index a824ef87eb..137f1da52f 100644
--- a/utils/std_string_utils.cpp
+++ b/utils/std_string_utils.cpp
@@ -169,6 +169,7 @@ std::string utils::text::html_entities_decode(std::string data)
utils::text::replace_all(&data, "&quot;", "\"");
utils::text::replace_all(&data, "&lt;", "<");
utils::text::replace_all(&data, "&gt;", ">");
+ utils::text::replace_all(&data, "&nbsp;", " ");
utils::text::replace_all(&data, "&hearts;", "\xE2\x99\xA5"); // direct byte replacement
// utils::text::replace_all(&data, "&hearts;", "\\u2665"); // indirect slashu replacement