", "";
assert!(clean(png).contains("data:image/png;base64,iVBORw0KGgo="), "{}", clean(png));
let svg = " ";
assert!(!clean(svg).contains("image/svg"), "{}", clean(svg));
let html = " ";
assert!(!clean(html).contains("text/html"));
}
#[test]
fn text_bodies_are_escaped_and_linked() {
let html = text_to_html("a < b & c > d\n\nsee https://example.cz/x?y=1 ok");
assert!(html.contains("a < b & c > d"), "{html}");
assert!(!html.to_ascii_lowercase().contains("".to_string()),
Just("".to_string()),
Just(" ".to_string()),
Just(" onload=".to_string()),
Just(" ONCLICK = ".to_string()),
Just("javascript:".to_string()),
Just("JAVASCRIPT:".to_string()),
Just("".to_string()),
Just(" |