The Reform library attempts to provide a solid set of functions for encoding output for the most common context targets in web applications (e.g. HTML, XML, JavaScript, etc). The library also takes a conservative view of what are allowable characters based on historical vulnerabilities, and current injection techniques.
Implemented for eight common web-development languages, including Python.
Comments for this link are closed. If you'd like to share your thoughts on this link with me, please contact me directly.