Skip to content

Commit

Permalink
sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapu1178 committed Apr 21, 2024
1 parent a3db447 commit 0473992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sanitize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0473992

Please sign in to comment.