from django.utils.safestring import mark_safe

a = mark_safe("<a href='#'>test</a>")