Skip to main content

parse_html

Function parse_html 

Source
pub fn parse_html(html: &str) -> (String, Vec<MessageEntity>)
Expand description

Parse a Telegram-compatible HTML string into (plain_text, entities).

Uses the html5ever spec-compliant tokenizer. Enable the html5ever Cargo feature to activate this implementation.