From 72c52466e0c2a8cb133c3ee6131be484cb3147e0 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 26 May 2020 21:20:28 +0100 Subject: [PATCH] LibWeb: Add more HTML entities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ®, ß and all the lowercase and uppercase umlaut characters. --- Libraries/LibWeb/Parser/HTMLParser.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Parser/HTMLParser.cpp b/Libraries/LibWeb/Parser/HTMLParser.cpp index 119bd7c75d0..df87365c007 100644 --- a/Libraries/LibWeb/Parser/HTMLParser.cpp +++ b/Libraries/LibWeb/Parser/HTMLParser.cpp @@ -229,7 +229,21 @@ static bool parse_html_document(const StringView& html, Document& document, Pare { """, "\"" }, { "»", ">>" }, { "«", "<<" }, - { "©", "\xC2\xA9" }, + { "©", "©" }, + { "®", "®" }, + { "ß", "ß" }, + { "ä", "ä" }, + { "ë", "ë" }, + { "ï", "ï" }, + { "ö", "ö" }, + { "ü", "ü" }, + { "ÿ", "ÿ" }, + { "Ä", "Ä" }, + { "Ë", "Ë" }, + { "Ï", "Ï" }, + { "Ö", "Ö" }, + { "Ü", "Ü" }, + { "Ÿ", "Ÿ" }, }; auto rest_of_html = html.substring_view(i, html.length() - i); bool found = false;