Function autocorrect::__wasm_bindgen_generated_formatHTML [−][src]
pub extern "C" fn __wasm_bindgen_generated_formatHTML(
arg0: <str as RefFromWasmAbi>::Abi
) -> <String as ReturnWasmAbi>::Abi
Expand description
Format a html content.
Example:
let html = r#"
<article>
<h1>这是 Heading 标题</h1>
<div class="content">
<p>你好 Rust 世界<strong>Bold 文本</strong></p>
<p>这是第二行 p 标签</p>
</div>
</article>
"#;
autocorrect::format_html(html);