From d28459fb117a5b8d8c5fe89a0754d671cb1d4bd7 Mon Sep 17 00:00:00 2001 From: Peter Elliott Date: Thu, 9 Sep 2021 19:33:29 -0600 Subject: AK: Escape '"' in escape_html_entities --- AK/String.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'AK/String.cpp') 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]); } -- cgit v1.2.3