aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/html
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit7fe839092527589b38f014d854c51565b3c1adfa (patch)
tree309e97022d3530044b712b8f71318c78faf7856e /library/cpp/html
parentd0d68c395c10da4cb56a1c845504570a04d7893e (diff)
downloadydb-7fe839092527589b38f014d854c51565b3c1adfa.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/html')
-rw-r--r--library/cpp/html/escape/escape.cpp12
-rw-r--r--library/cpp/html/pcdata/pcdata.cpp22
2 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/html/escape/escape.cpp b/library/cpp/html/escape/escape.cpp
index 5b8ed60f04..8d0b5c2a1e 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("&quot;")},
- {'&', true, TStringBuf("&amp;")},
- {'<', 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) {
diff --git a/library/cpp/html/pcdata/pcdata.cpp b/library/cpp/html/pcdata/pcdata.cpp
index 740c240fd2..43c150c4bf 100644
--- a/library/cpp/html/pcdata/pcdata.cpp
+++ b/library/cpp/html/pcdata/pcdata.cpp
@@ -19,31 +19,31 @@ static void EncodeHtmlPcdataAppendInternal(const TStringBuf str, TString& strout
switch (*s) {
case '\"':
- strout += TStringBuf("&quot;");
- ++s;
+ strout += TStringBuf("&quot;");
+ ++s;
break;
case '<':
- strout += TStringBuf("&lt;");
- ++s;
+ strout += TStringBuf("&lt;");
+ ++s;
break;
case '>':
- strout += TStringBuf("&gt;");
- ++s;
+ strout += TStringBuf("&gt;");
+ ++s;
break;
case '\'':
- strout += TStringBuf("&#39;");
- ++s;
+ strout += TStringBuf("&#39;");
+ ++s;
break;
case '&':
if (qAmp)
- strout += TStringBuf("&amp;");
+ strout += TStringBuf("&amp;");
else
- strout += TStringBuf("&");
- ++s;
+ strout += TStringBuf("&");
+ ++s;
break;
}
}