LibWeb: Turn some HTML entities into nicer text in the parser

This commit is contained in:
Andreas Kling 2020-05-05 15:39:33 +02:00
parent 6676f2c259
commit 8a40294f42
Notes: sideshowbarker 2024-07-19 06:57:10 +09:00

View file

@ -207,6 +207,9 @@ static bool parse_html_document(const StringView& html, Document& document, Pare
{ ">", ">" },
{ "&", "&" },
{ "—", "-" },
{ " ", " " }, // FIXME: Should actually be *non-breaking*
{ "»", ">>" },
{ "&laquo;", "<<" },
};
auto rest_of_html = html.substring_view(i, html.length() - i);
bool found = false;