summaryrefslogtreecommitdiffstats
path: root/net/base/escape.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/escape.h')
-rw-r--r--net/base/escape.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/base/escape.h b/net/base/escape.h
index 67ccc5f..b9b0b6a 100644
--- a/net/base/escape.h
+++ b/net/base/escape.h
@@ -92,6 +92,8 @@ class UnescapeRule {
// conversions need to take place, it only unescapes.
std::string UnescapeURLComponent(const std::string& escaped_text,
UnescapeRule::Type rules);
+string16 UnescapeURLComponent(const string16& escaped_text,
+ UnescapeRule::Type rules);
// Unescapes the given substring as a URL, and then tries to interpret the
// result as being encoded as UTF-8. If the result is convertable into UTF-8, it
@@ -106,6 +108,10 @@ string16 UnescapeAndDecodeUTF8URLComponent(const std::string& text,
UnescapeRule::Type rules,
size_t* offset_for_adjustment);
+// Unescape the following ampersand character codes from |text|:
+// < > & " '
+string16 UnescapeForHTML(const string16& text);
+
// Deprecated ------------------------------------------------------------------
// Escapes characters in text suitable for use as a query parameter value.