Align html sanitizing closer to upstream

This commit is contained in:
nachtjasmin 2023-12-27 22:49:07 +01:00
parent aa986fb619
commit 458a9a6f24
No known key found for this signature in database
1 changed files with 1 additions and 5 deletions

View File

@ -84,10 +84,7 @@ class Sanitize
},
},
protocols: {
'a' => { 'href' => HTTP_PROTOCOLS },
'blockquote' => { 'cite' => HTTP_PROTOCOLS },
},
protocols: {},
transformers: [
CLASS_WHITELIST_TRANSFORMER,
@ -106,7 +103,6 @@ class Sanitize
'iframe' => %w(allowfullscreen frameborder height scrolling src width),
'source' => %w(src type),
'video' => %w(controls height loop width),
'div' => [:data],
},
protocols: {