Skip to main content

add_scope_class

Function add_scope_class 

Source
pub fn add_scope_class(html: &str, id: &str) -> String
Expand description

Add a scope class to every opening HTML tag in the fragment.

Skips closing tags, comments, and tags in [SKIP_SCOPE_TAGS]. Handles: existing class, no class, self-closing tags.