diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-07-27 09:05:52 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-07-27 09:05:52 +0000 |
commit | 8b77c1ba74a24af5ec831385fc876807aed509c0 (patch) | |
tree | 11bff428aa51b7fb36b5ebb30662a5ff4a6b7b65 /protocols/Twitter/src/StringUtil.cpp | |
parent | d8987ee0292e52549abfcf8763e93cf187317581 (diff) |
Twitter: Replace few more html entities with text representation
git-svn-id: http://svn.miranda-ng.org/main/trunk@14734 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/src/StringUtil.cpp')
-rw-r--r-- | protocols/Twitter/src/StringUtil.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/Twitter/src/StringUtil.cpp b/protocols/Twitter/src/StringUtil.cpp index 61cb9adbd2..0ac892cd1f 100644 --- a/protocols/Twitter/src/StringUtil.cpp +++ b/protocols/Twitter/src/StringUtil.cpp @@ -86,3 +86,13 @@ std::string& replaceAll(std::string& context, const std::string& from, const std }
return context;
}
+
+std::string& htmlEntitiesDecode(std::string& context)
+{
+ replaceAll(context, "&", "&");
+ replaceAll(context, """, "\"");
+ replaceAll(context, "<", "<");
+ replaceAll(context, ">", ">");
+
+ return context;
+}
\ No newline at end of file |