Skip to content

Django Escaping Html In Test

Django Escaping HTML in Test#

Import django’s escape it is different from html.escape

from django.utils.html import escape
escape("'")

Source#

Stackoverflow escaping