misc: mark text cell content as safe (#32823)
This commit is contained in:
parent
c9b4ed5d4e
commit
ede3575fb2
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{% block cell-content %}
|
||||
{{text|safe}}
|
||||
{{text}}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1 +1 @@
|
|||
<div class="XXX">{{cell.text|safe}}</div>
|
||||
<div class="XXX">{{text}}</div>
|
||||
|
|
Loading…
Reference in New Issue