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

Function inline_fragment

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

Source from the content-addressed store, hash-verified

965/// using the same inliner panicked while resolving external stylesheets.
966#[inline]
967pub fn inline_fragment(html: &str, css: &str) -> Result<String> {
968 CSSInliner::default().inline_fragment(html, css)
969}
970
971/// Shortcut for inlining CSS into an HTML fragment with default parameters and writing the output to a generic writer.
972///

Callers

nothing calls this directly

Calls 1

inline_fragmentMethod · 0.45

Tested by

no test coverage detected