Skip to content
Snippets Groups Projects
Commit efb06bca authored by Maximilian Moser's avatar Maximilian Moser Committed by Karolina
Browse files

templates: add safe filter to html_tags

* otherwise, the HTML tags are escaped and thus not interpreted by the
  browser
parent 313df1fe
Branches
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
This file is part of Invenio. This file is part of Invenio.
Copyright (C) 2015-2019 CERN. Copyright (C) 2015-2019 CERN.
Copyright (C) 2022 TU Wien.
Invenio is free software; you can redistribute it and/or modify it Invenio is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details. under the terms of the MIT License; see LICENSE file for more details.
...@@ -10,7 +11,7 @@ ...@@ -10,7 +11,7 @@
{%- extends config.PREVIEWER_BASE_TEMPLATE %} {%- extends config.PREVIEWER_BASE_TEMPLATE %}
{%- block html_tags %} {%- block html_tags %}
{{ html_tags }} {{ html_tags|safe }}
{%- endblock %} {%- endblock %}
{%- block head %} {%- block head %}
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
This file is part of Invenio. This file is part of Invenio.
Copyright (C) 2015-2020 CERN. Copyright (C) 2015-2020 CERN.
Copyright (C) 2022 TU Wien.
Invenio is free software; you can redistribute it and/or modify it Invenio is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details. under the terms of the MIT License; see LICENSE file for more details.
...@@ -10,7 +11,7 @@ ...@@ -10,7 +11,7 @@
{%- extends config.PREVIEWER_BASE_TEMPLATE %} {%- extends config.PREVIEWER_BASE_TEMPLATE %}
{%- block html_tags %} {%- block html_tags %}
{{ html_tags }} {{ html_tags|safe }}
{%- endblock %} {%- endblock %}
{%- block head %} {%- block head %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment