mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +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:
parent
d6c0d32b63
commit
397acde846
Notes:
sideshowbarker
2024-07-19 11:20:12 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/397acde8464
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue