Fix cleanhtml build
This commit is contained in:
parent
bfd5e12bea
commit
7b511c1673
@ -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(())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user