1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 19:04:59 +00:00

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

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;