diff options
author | Peter Elliott <pelliott@ualberta.ca> | 2021-09-09 19:33:29 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 12:17:16 +0200 |
commit | d28459fb117a5b8d8c5fe89a0754d671cb1d4bd7 (patch) | |
tree | 0742bf570d887267fabeb95b5a5a262af549e5bf /AK/String.cpp | |
parent | 6724d6d3912b835e7f2eeed5e297611c84a225c6 (diff) | |
download | serenity-d28459fb117a5b8d8c5fe89a0754d671cb1d4bd7.zip |
AK: Escape '"' in escape_html_entities
Diffstat (limited to 'AK/String.cpp')
-rw-r--r-- | AK/String.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/AK/String.cpp b/AK/String.cpp index df2d0730c6..66b61767c7 100644 --- a/AK/String.cpp +++ b/AK/String.cpp @@ -371,6 +371,8 @@ String escape_html_entities(const StringView& html) builder.append(">"); else if (html[i] == '&') builder.append("&"); + else if (html[i] == '"') + builder.append("""); else builder.append(html[i]); } |