Function telegraph_rs::html_to_node[][src]

pub fn html_to_node(html: &str) -> String

Parse html to node string

use telegraph_rs::html_to_node;

let node = html_to_node("<p>Hello, world</p>");
assert_eq!(node, r#"[{"tag":"p","attrs":null,"children":["Hello, world"]}]"#);