From 397acde8464a67a997a3081cd098e9d4f07237b6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 7 Nov 2019 21:19:34 +0100 Subject: [PATCH] LibHTML: Turn "—" into "-" in the parser for now Ultimately we should deal with all the various HTML entitites. --- Libraries/LibHTML/Parser/HTMLParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/LibHTML/Parser/HTMLParser.cpp b/Libraries/LibHTML/Parser/HTMLParser.cpp index 94dc1299f1..cfcd32d3ea 100644 --- a/Libraries/LibHTML/Parser/HTMLParser.cpp +++ b/Libraries/LibHTML/Parser/HTMLParser.cpp @@ -145,7 +145,8 @@ static bool parse_html_document(const StringView& html, Document& document, Pare static Escape escapes[] = { { "<", "<" }, { ">", ">" }, - { "&", "&" } + { "&", "&" }, + { "—", "-" }, }; auto rest_of_html = html.substring_view(i, html.length() - i); bool found = false;