misc: mark text cell content as safe (#32823)

This commit is contained in:
Frédéric Péters 2019-05-06 16:56:25 +02:00
parent c9b4ed5d4e
commit ede3575fb2
3 changed files with 3 additions and 3 deletions

View File

@ -768,7 +768,7 @@ class TextCell(CellBase):
return 'href="%s"' % url
text = re.sub(r'src="(.*?)"', sub_src, text)
text = re.sub(r'href="(.*?)"', sub_href, text)
extra_context['text'] = text
extra_context['text'] = mark_safe(text)
return extra_context

View File

@ -1,3 +1,3 @@
{% block cell-content %}
{{text|safe}}
{{text}}
{% endblock %}

View File

@ -1 +1 @@
<div class="XXX">{{cell.text|safe}}</div>
<div class="XXX">{{text}}</div>