Base list of allowed HTML tags and attributes on the Ammonia defaults #1872
Labels
A-readme
C-enhancement ✨
Category: Adding new behavior or a change to the way an existing feature works
E-help-wanted
Our readme renderer uses Ammonia to sanitise the HTML. We currently explicitly list all HTML tags and attributes we allow in the source code. To simplify this code, and to allow some additional safe attributes we currently don't allow, we could rely on Ammonia's defaults instead, and add any additional items we may need.
Suggested steps:
MarkdownRenderer::new()
(linked above) to only add these additional tags to the defaults.The text was updated successfully, but these errors were encountered: