mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user