Fix cleanhtml build

This commit is contained in:
Bill Thiede 2024-07-22 16:41:14 -07:00
parent bfd5e12bea
commit 7b511c1673

View File

@ -10,7 +10,7 @@ fn main() -> anyhow::Result<()> {
println!("Sanitizing {src} into {dst}"); println!("Sanitizing {src} into {dst}");
let bytes = fs::read(src)?; let bytes = fs::read(src)?;
let html = String::from_utf8_lossy(&bytes); let html = String::from_utf8_lossy(&bytes);
let html = sanitize_html(&html, "", &Url::parse("http://example.com")?)?; let html = sanitize_html(&html, "", &None)?;
fs::write(dst, html)?; fs::write(dst, html)?;
Ok(()) Ok(())