" " <textarea>?
Because, if so, escaping <before <(and others) is what you should do inside a text box or any other HTML element: Django does the right thing. You see the correct, decrypted version of the text on the page; who cares what the source looks like?
If you do not avoid the contents of the text field, you not only generate invalid HTML, but also open yourself up for attacks when the user types:
</textarea>
<script>
steal(document.cookie);
location.href= 'russian malware site';
</script>
source
share