Browse Source

AK: Escape '"' in escape_html_entities

Peter Elliott 3 years ago
parent
commit
d28459fb11
1 changed files with 2 additions and 0 deletions
  1. 2 0
      AK/String.cpp

+ 2 - 0
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]);
     }