У меня есть модель:
class DocumentoPaziente(models.Model):
nome = models.CharField(null=True, blank=True, max_length=50)
cognome = models.CharField(null=True, blank=True, max_length=50)
contenuto = models.CharField(null=True, blank=True, max_length=100000)
Содержимое переменной:
Il Paziente <font color="#000000"><font face="Arial, serif"><font size="3" style="font-size: 12pt"><span lang="zxx"><b>{{ member.cognome }}
{{ member.nome }}</b></span></font><font color="#000000"><font face="Arial, serif"><font size="3" style="font-size: 12pt"><span lang="zxx">
abitante [...]
В шаблоне:
{% autoescape off %}
{{ member.contenuto }}
{% endautoescape %}
Отображается
Il Paziente {{ member.cognome }} {{ member.nome }} abitante [...]
Ожидаемое:
Il Paziente Smith John abitante [...]