How do you turn off Django’s automatic HTML escaping for part of a web page?
You don't need to do anything—autoescaping is off by default.
Wrap that section between {percentage mark autoescapeoff percentage mark} and {percentage mark endautoescapeoff percentage mark} tags.
Place that section between paragraph tags containing the autoescape=off switch.
Wrap that section between { percentage mark autoescape off percentage mark} and {percentage mark endautoescape percentage mark} tags.