Closed parthshah31 closed 2 years ago
sanitizeBalance sometimes still includes the content within the style tag.
sanitizeBalance
Here's a minimum reproducible example that shows the issue:
λ> sanitizeBalance "<!DOCTYPE><html><style>html{width:100%;max-width:100%}</style></html></DOCTYPE>" "html{width:100%;max-width:100%}"
This should just return "" and a simple example like this works:
λ> sanitizeBalance "<style>html{width:100%}</style>"
Correction, the <style> tag content are never dropped even though it's not listed in the acceptable_elements
<style>
acceptable_elements
PR welcome to address this.
Actually fixed. Updated version. Was solved by @tysonzero
sanitizeBalance
sometimes still includes the content within the style tag.Here's a minimum reproducible example that shows the issue:
This should just return "" and a simple example like this works: