MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / inline

Function inline

css-inline/src/lib.rs:927–929  ·  view source on GitHub ↗
(html: &str)

Source from the content-addressed store, hash-verified

925/// using the same inliner panicked while resolving external stylesheets.
926#[inline]
927pub fn inline(html: &str) -> Result<String> {
928 CSSInliner::default().inline(html)
929}
930
931/// Shortcut for inlining CSS with default parameters and writing the output to a generic writer.
932///

Callers 15

keep_attribute_styleFunction · 0.50
simple_mergeFunction · 0.50
href_attribute_unchangedFunction · 0.50
complex_child_selectorFunction · 0.50
invalid_ruleFunction · 0.50
remove_style_tagFunction · 0.50
remote_file_stylesheetFunction · 0.50
missing_stylesheetFunction · 0.50

Calls 1

inlineMethod · 0.45

Tested by 15

keep_attribute_styleFunction · 0.40
simple_mergeFunction · 0.40
href_attribute_unchangedFunction · 0.40
complex_child_selectorFunction · 0.40
invalid_ruleFunction · 0.40
remove_style_tagFunction · 0.40
remote_file_stylesheetFunction · 0.40
missing_stylesheetFunction · 0.40