summaryrefslogtreecommitdiff
path: root/AK/String.cpp
diff options
context:
space:
mode:
authorPeter Elliott <pelliott@ualberta.ca>2021-09-09 19:33:29 -0600
committerAndreas Kling <kling@serenityos.org>2021-09-12 12:17:16 +0200
commitd28459fb117a5b8d8c5fe89a0754d671cb1d4bd7 (patch)
tree0742bf570d887267fabeb95b5a5a262af549e5bf /AK/String.cpp
parent6724d6d3912b835e7f2eeed5e297611c84a225c6 (diff)
downloadserenity-d28459fb117a5b8d8c5fe89a0754d671cb1d4bd7.zip
AK: Escape '"' in escape_html_entities
Diffstat (limited to 'AK/String.cpp')
-rw-r--r--AK/String.cpp2
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("&gt;");
else if (html[i] == '&')
builder.append("&amp;");
+ else if (html[i] == '"')
+ builder.append("&quot;");
else
builder.append(html[i]);
}