Function ammonia::clean

source ·
pub fn clean(src: &str) -> String
Expand description

Clean HTML with a conservative set of defaults.

§Examples

assert_eq!(ammonia::clean("XSS<script>attack</script>"), "XSS")