{% extends "example_base.html" %} {% block content %}
(back to the main page)
An example showing how to use Bleach library to do user input sanitization.
For more information, check out the Bleach README.
Enter some possibly harmful text here, hit send, and see what Bleach does with it.
{% if bleached %}Bleached, this became:
{{ bleached }}
Some things to try out:
an <script>evil()</script> exampleHello <strong>world</strong>!Check out <a href="http://mozilla.org">mozilla.org</a>Unbalanced <em>tag