Skip to main content

extract_style_blocks

Function extract_style_blocks 

Source
pub fn extract_style_blocks(source: &str) -> Vec<Range<usize>>
Expand description

Return the content ranges of HTML/template <style> elements. The tag itself is intentionally excluded so transformations can be spliced back without changing Blade/PHP/HTML markup.