Django Escaping HTML in Test

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

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

Source

Stackoverflow escaping