From 0473992a1f480b662cfb2bfe8b71ee79fec81943 Mon Sep 17 00:00:00 2001 From: Kapu1178 <75460809+Kapu1178@users.noreply.github.com> Date: Sun, 21 Apr 2024 03:21:24 -0400 Subject: [PATCH] sigh --- src/sanitize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sanitize.rs b/src/sanitize.rs index 0e19b0f7..21273ae7 100644 --- a/src/sanitize.rs +++ b/src/sanitize.rs @@ -20,7 +20,7 @@ fn seriously_sanitize_html( prune_url_schemes.insert("byond"); let sanitized = ammonia::Builder::empty() - .clean_content_tags(HashSet::from_iter(["script", "style"]) ) // Completely forbid script and style attributes. + .clean_content_tags(HashSet::from_iter(["script", "style"])) // Completely forbid script and style attributes. .link_rel(Some("noopener")) // https://mathiasbynens.github.io/rel-noopener/ .url_schemes(prune_url_schemes) .generic_attributes(attribute_whitelist)