apostrophecms/sanitize-html
Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance
JavaScriptMIT
Issues
- 6
Update sanitize-html from 2.1.0 to 2.12.1 fails. Module parse failed: Unexpected token.
#663 opened by ricdev - 1
- 11
- 0
Rules with `*` wildcard within `allowedClasses` option do not work with regex
#673 opened by anak-dev - 1
Handling text with no markup
#674 opened by jolla56 - 4
Unclosed tag in escape mode is removed
#603 opened by kiprobinsonknack - 4
- 11
Browser console warnings with React and Vite
#639 opened by bedwards-cms - 3
- 3
Build warning Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
#669 opened by dennisat - 4
sanitizeHtml throws TypeError on '&' symbol
#606 opened by matejfalat - 5
- 1
Sanitize <style> content
#657 opened by mloureiro - 2
Extra tags being added
#667 opened by arasfeld-seamless - 5
- 9
- 2
browser-external:source-map-js:9 Module "source-map-js" has been externalized for browser compatibility. Cannot access "source-map-js.SourceMapConsumer" in client code. See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details
#664 opened by dhivahar19 - 7
Allow tags in tags
#609 opened by cgorrieri - 7
How do I only allow tagged html
#645 opened by ViteOrder - 6
- 6
Fix checkmarx vulnerability
#648 opened by finbargp - 6
- 3
Allow code snippets
#649 opened by BenRacicot - 1
- 1
Update postcss
#642 opened by suharelli - 1
The postcss v8.4.27 vulnerability
#640 opened by Ali-Zmn - 4
allowedStyles does not work
#622 opened by david-siqi-liu - 1
- 4
Postcss vulnerability
#635 opened by wesleimarinho - 6
- 3
Add attribute rel to default attributes
#584 opened by jonasgrilleres - 5
- 3
README.md is reporting FAILED
#627 opened by alfreema - 1
Asynchronous transformTags call
#626 opened by Stanislavussov - 2
Is it possible to transform and wrap?
#591 opened by rob-rountree-cyted - 1
All subsequent attributes get removed when an invalid attribute is encountered
#582 opened by aditigupta50 - 2
Support for nested tags in transformTags
#598 opened by seanhexl - 4
<sup> tag doesn't work with sanitizeHtml
#595 opened by samilieberman - 2
Applying styles to allowed class
#602 opened by jdozierezell - 1
- 4
Adding "text" argument to transformTags callback
#581 opened by ile - 2
sanitizeHtml remove the style attribute
#616 opened by vishaltyagi227 - 3
Add option to remove warning
#613 opened by mog422 - 3
- 1
`parseStyleAttributes` is not present in 2.8.1
#604 opened by bilobom - 3
Update sanitize-html from 2.7.3 to 2.8.0 fails under webpack 4: Module parse failed: Unexpected token
#592 opened by alexander-schranz - 3
Not working under IE 11
#578 opened by CaptainJon - 2
- 1
For wrapper tags, additional tags get added
#583 opened by aditigupta50 - 4
Cannot read property 'replace' of undefined
#579 opened by tyzion