Quellcode durchsuchen

LibWeb: Add HTML copyright escape

FalseHonesty vor 5 Jahren
Ursprung
Commit
4e8bcda4d1
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      Libraries/LibWeb/Parser/HTMLParser.cpp

+ 1 - 0
Libraries/LibWeb/Parser/HTMLParser.cpp

@@ -229,6 +229,7 @@ static bool parse_html_document(const StringView& html, Document& document, Pare
                     { """, "\"" },
                     { "»", ">>" },
                     { "&laquo;", "<<" },
+                    { "&copy;", "\xC2\xA9" },
                 };
                 auto rest_of_html = html.substring_view(i, html.length() - i);
                 bool found = false;