Skip to main content

preprocess_html_entities

Function preprocess_html_entities 

Source
pub fn preprocess_html_entities(content: &str) -> String
Expand description

Pre-process XML content to handle common HTML entities.

EPUB files often contain HTML entities like   that are not recognized by strict XML parsers. This function replaces them with numeric character references that XML parsers can understand.