瀏覽代碼

AK: Escape '"' in escape_html_entities

Peter Elliott 3 年之前
父節點
當前提交
d28459fb11
共有 1 個文件被更改,包括 2 次插入0 次删除
  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]);
     }