LibHTML: Turn "—" into "-" in the parser for now

Ultimately we should deal with all the various HTML entitites.
This commit is contained in:
Andreas Kling 2019-11-07 21:19:34 +01:00
parent d6c0d32b63
commit 397acde846
Notes: sideshowbarker 2024-07-19 11:20:12 +09:00

View File

@ -145,7 +145,8 @@ static bool parse_html_document(const StringView& html, Document& document, Pare
static Escape escapes[] = {
{ "&lt;", "<" },
{ "&gt;", ">" },
{ "&amp;", "&" }
{ "&amp;", "&" },
{ "&mdash;", "-" },
};
auto rest_of_html = html.substring_view(i, html.length() - i);
bool found = false;