[−][src]Function autocorrect::format_html
pub fn format_html(html_str: &str) -> String
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);