Skip to main content

rewrite_html_classes

Function rewrite_html_classes 

Source
pub fn rewrite_html_classes(
    html: &str,
    class_map: &HashMap<String, String>,
) -> String
Expand description

Rewrite class / className attributes in HTML-like markup. Keeps quotes and surrounding source intact (same role as mangle’s htmlHandler).