LibWeb: Add more HTML entities

®, ß and all the lowercase and uppercase umlaut characters.
This commit is contained in:
Linus Groh 2020-05-26 21:20:28 +01:00 committed by Andreas Kling
parent f01af62313
commit 72c52466e0
Notes: sideshowbarker 2024-07-19 06:06:05 +09:00

View file

@ -229,7 +229,21 @@ static bool parse_html_document(const StringView& html, Document& document, Pare
{ """, "\"" },
{ "»", ">>" },
{ "&laquo;", "<<" },
{ "&copy;", "\xC2\xA9" },
{ "&copy;", "©" },
{ "&reg;", "®" },
{ "&szlig;", "ß" },
{ "&auml;", "ä" },
{ "&euml;", "ë" },
{ "&iuml;", "ï" },
{ "&ouml;", "ö" },
{ "&uuml;", "ü" },
{ "&yuml;", "ÿ" },
{ "&Auml;", "Ä" },
{ "&Euml;", "Ë" },
{ "&Iuml;", "Ï" },
{ "&Ouml;", "Ö" },
{ "&Uuml;", "Ü" },
{ "&Yuml;", "Ÿ" },
};
auto rest_of_html = html.substring_view(i, html.length() - i);
bool found = false;