Apexal / rcos_io

The final RCOS web client. Built on the RCOS database via Hasura.
MIT License
3 stars 1 forks source link

Sanitize Markdown before rendering #9

Closed gmisail closed 1 year ago

gmisail commented 1 year ago

Before feeding the rendered Markdown to the template, we now pass it through Bleach so that unwanted tags are stripped away. I currently set it to use a very basic subset of tags (bold, italics, etc...) to prevent against any cross-site scripting attacks. It's enough to render 99% of use cases, but we can amend as needed.

image