Selaa lähdekoodia

AK: Escape '"' in escape_html_entities

Peter Elliott 3 vuotta sitten
vanhempi
commit
d28459fb11
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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]);
     }