mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-07 11:42:51 +00:00
LibWeb: Turn some HTML entities into nicer text in the parser
This commit is contained in:
parent
6676f2c259
commit
8a40294f42
Notes:
sideshowbarker
2024-07-19 06:57:10 +09:00
Author: https://github.com/awesomekling
Commit: 8a40294f42
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue