Skip to main content

add_html_token

Function add_html_token 

Source
pub fn add_html_token(result: &mut String, token: &[u8], add_space: bool)
Expand description

Appends one text token of an HTML document to result, decoded when it is an entity (&, é), after a space when add_space is set. Invalid UTF-8 becomes U+FFFD. For callers with their own HTML tokenizer.