mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Escape '"' in escape_html_entities
This commit is contained in:
parent
6724d6d391
commit
d28459fb11
Notes:
sideshowbarker
2024-07-18 04:10:49 +09:00
Author: https://github.com/petelliott Commit: https://github.com/SerenityOS/serenity/commit/d28459fb117 Pull-request: https://github.com/SerenityOS/serenity/pull/9928 Reviewed-by: https://github.com/BenWiederhake ✅ Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 0 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue