Skip to content

Commit 22b838d

Browse files
ptamarityashlamba
authored andcommitted
details: fix: do not sanitize additional description in template
1 parent 442cc2f commit 22b838d

File tree

1 file changed

+3
-2
lines changed
  • invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros

1 file changed

+3
-2
lines changed

invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ <h2>
7373
{{ '(' ~ add_description.lang.title_l10n ~ ')' if add_description.lang is defined else '' }}
7474
</span>
7575
</h2>
76+
{# additional description data is being sanitized by marshmallow in the backend #}
7677
{% if desc_type_defined and add_description.type.id == "notes" %}
7778
<div class="ui message warning">
78-
{{ desc_text | sanitize_html() | safe }}
79+
{{ desc_text | safe }}
7980
</div>
8081
{% else %}
81-
{{ desc_text | sanitize_html() | safe }}
82+
{{ desc_text | safe }}
8283
{% endif %}
8384
</section>
8485
{% endfor %}

0 commit comments

Comments
 (0)