CSS sanitization and serialisation in a good place

This commit is contained in:
2020-04-25 18:59:18 -04:00
parent e4316f1a6f
commit caca121bef
5 changed files with 81 additions and 42 deletions

View File

@@ -13,6 +13,7 @@ lazy_static! {
allowed_protocols: HashMap::new(),
allowed_css_at_rules: HashSet::new(),
allowed_css_properties: HashSet::new(),
allow_css_comments: false,
remove_contents_when_unwrapped: hashset! {
local_name!("iframe"),
local_name!("noembed"),