mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Add extracting character encoding from a meta content attribute
Some Gmail emails contain this.
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 09:07:48 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/e9eae9d8801 Pull-request: https://github.com/SerenityOS/serenity/pull/8727
@@ -15,6 +15,7 @@ namespace Web::HTML {
|
||||
bool prescan_should_abort(const ByteBuffer& input, const size_t& position);
|
||||
bool prescan_is_whitespace_or_slash(const u8& byte);
|
||||
bool prescan_skip_whitespace_and_slashes(const ByteBuffer& input, size_t& position);
|
||||
Optional<String> extract_character_encoding_from_meta_element(String const&);
|
||||
Optional<Attribute> prescan_get_attribute(const ByteBuffer& input, size_t& position);
|
||||
Optional<String> run_prescan_byte_stream_algorithm(const ByteBuffer& input);
|
||||
String run_encoding_sniffing_algorithm(const ByteBuffer& input);
|
||||
|
||||
Reference in New Issue
Block a user