aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/html/escape/escape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/html/escape/escape.cpp')
-rw-r--r--library/cpp/html/escape/escape.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/html/escape/escape.cpp b/library/cpp/html/escape/escape.cpp
index 8d0b5c2a1e..5b8ed60f04 100644
--- a/library/cpp/html/escape/escape.cpp
+++ b/library/cpp/html/escape/escape.cpp
@@ -11,14 +11,14 @@ namespace NHtml {
TStringBuf Entity;
};
- TReplace Escapable[] = {
- {'"', false, TStringBuf(""")},
- {'&', true, TStringBuf("&")},
- {'<', true, TStringBuf("&lt;")},
- {'>', true, TStringBuf("&gt;")},
+ TReplace Escapable[] = {
+ {'"', false, TStringBuf("&quot;")},
+ {'&', true, TStringBuf("&amp;")},
+ {'<', true, TStringBuf("&lt;")},
+ {'>', true, TStringBuf("&gt;")},
};
- TString EscapeImpl(const TString& value, bool isText) {
+ TString EscapeImpl(const TString& value, bool isText) {
auto ci = value.begin();
// Looking for escapable characters.
for (; ci != value.end(); ++ci) {