Oza94 / node-press

A minimalist content management system running on node.js. See it live at http://node-press.com/
4 stars 1 forks source link

Sanitize html generated from markdown string #6

Closed Oza94 closed 9 years ago

Oza94 commented 9 years ago

Now, the html is not sanitized. Therefore you can put a <script>alert('foo');</script> tag in your markdown.

We should sanitize it, sanitize-html seems a good option.

Examples of things to allow/disallow