Skip to main content

escape_html

Function escape_html 

Source
pub fn escape_html(text: &str) -> String
Expand description

转义文本节点和属性值中的 HTML 特殊字符,保留 Unicode 与连续空格。