pub fn format_html(html: &str) -> String👎Deprecated since 2.0.0: Please use
format_for insteadExpand 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);