Sanitize supports only one tag
See original GitHub issueWhether it was made intentionally or not, src/sanitize.js
supports only one <em>
tag. Are you planning to add some more important tags ( i.e <script>
) or better yet let a developer himself to pass a Regex as an argument?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Allow all except certain tags · Issue #89 - GitHub
I can't see an easy way to strip out only script elements, for example, without making a huge array of every other element...
Read more >Rails sanitize remove default allowed tags - Stack Overflow
Yes you can specify which tags and attributes to allow on a per-call basis. From the fine manual: Custom Use (only the mentioned...
Read more >HTML Sanitizer API - MDN Web Docs
The HTML Sanitizer API allow developers to take untrusted strings of HTML and Document or DocumentFragment objects, and sanitize them for ...
Read more >Sanitize HTML | Get started - Plant An App
This action recieves HTML input and repairs broken HTML tag syntax, removes specifed HTML tags and attributes, sets the "rel" attribute to "nofollow"...
Read more >Sanitize-html-x NPM
Allowing particular urls as a src to an iframe tag by filtering hostnames is also supported. HTML comments are not preserved.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Tom910 we really need the third opinion =)
We already have string/escape, and building another sanitize tool will be overkill to library purpose, so I’ll better remove it at all.