diff options
author | tobo <tobo@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
commit | 55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/html | |
parent | 7fe839092527589b38f014d854c51565b3c1adfa (diff) | |
download | ydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz |
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/html')
-rw-r--r-- | library/cpp/html/escape/escape.cpp | 12 | ||||
-rw-r--r-- | library/cpp/html/pcdata/pcdata.cpp | 22 |
2 files changed, 17 insertions, 17 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("<")}, - {'>', true, TStringBuf(">")}, + TReplace Escapable[] = { + {'"', false, TStringBuf(""")}, + {'&', true, TStringBuf("&")}, + {'<', true, TStringBuf("<")}, + {'>', true, TStringBuf(">")}, }; - 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 43c150c4bf..740c240fd2 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("""); - ++s; + strout += TStringBuf("""); + ++s; break; case '<': - strout += TStringBuf("<"); - ++s; + strout += TStringBuf("<"); + ++s; break; case '>': - strout += TStringBuf(">"); - ++s; + strout += TStringBuf(">"); + ++s; break; case '\'': - strout += TStringBuf("'"); - ++s; + strout += TStringBuf("'"); + ++s; break; case '&': if (qAmp) - strout += TStringBuf("&"); + strout += TStringBuf("&"); else - strout += TStringBuf("&"); - ++s; + strout += TStringBuf("&"); + ++s; break; } } |