vxml/html_repair
Best-effort HTML string repairs for XML-oriented parsing.
Values
pub fn html_repair(content: String) -> String
Best-effort repair for common HTML syntax that blocks XML-oriented parsers.
pub fn html_repair_close_void_tags(content: String) -> String
Converts common HTML void-element openings to self-closing XML syntax.
pub fn html_repair_escape_non_entity_ampersands(
content: String,
) -> String
Escapes ampersands that do not begin a syntactically plausible entity.
pub fn html_repair_expand_boolean_attrs(
content: String,
) -> String
Gives common bare HTML boolean attributes empty assigned values.
pub fn html_repair_remove_attrs_from_closing_tags(
content: String,
) -> String
Removes attributes from malformed closing tags.
pub const non_entity_ampersand_pattern: String
Matches ampersands that do not begin a syntactically plausible entity.