3 ms·
Could you provide some working examples of using HTML 5 parser for input sanitization?
by gambler 15y ago
Could you provide some working examples of using HTML 5 parser for input sanitization?
- justincormack 15y agohttp://code.google.com/p/html5lib/ http://code.google.com/p/html5lib/
- gambler 15y agoI see that they mention sanitizer and give an example of how to call it, but I can't find any real-life code doing sanitization. Am I missing something? (I'm curious about the level of complexity such library would require in 'client' code.)
- hoppipolla 15y agoBleach [1] is a sanitizer that uses html5lib on the backend. I think that Mozilla use it. [1] http://pypi.python.org/pypi/bleach http://pypi.python.org/pypi/bleach