From 8a40294f4216d54924e3992484c16e2b1a8859e5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 5 May 2020 15:39:33 +0200 Subject: [PATCH] LibWeb: Turn some HTML entities into nicer text in the parser --- Libraries/LibWeb/Parser/HTMLParser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/LibWeb/Parser/HTMLParser.cpp b/Libraries/LibWeb/Parser/HTMLParser.cpp index ab44078286..d3509a3d26 100644 --- a/Libraries/LibWeb/Parser/HTMLParser.cpp +++ b/Libraries/LibWeb/Parser/HTMLParser.cpp @@ -207,6 +207,9 @@ static bool parse_html_document(const StringView& html, Document& document, Pare { ">", ">" }, { "&", "&" }, { "—", "-" }, + { " ", " " }, // FIXME: Should actually be *non-breaking* + { "»", ">>" }, + { "«", "<<" }, }; auto rest_of_html = html.substring_view(i, html.length() - i); bool found = false;