Module html_util

Source
Expand description

Should add these to ahtml crate.

Functionsยง

anchor
Make an anchor (target for #foo style links) in the best compatible way
extract_paragraph_body
Strip outer div and p HTML elements and return the body of the inner-most of them. E.g. <div><p>Some <b>text</b>.</p></div> becomes Some <b>text</b>.. If not possible, returns the original node. If node is not in html, silently returns the original node. If keep_if_attributes is true, only strips elements when they have no attributes.
flat_get
flat_len
How many items the Flat contains.