Skip to content

Commit

Permalink
[SonataExtraBundle] escape json data properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoiriert committed Nov 17, 2023
1 parent d074baf commit 86bb0f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
{% if not value %}
<i>No data</i>
{% endif %}
<div class="json-viewer" data-json='{{ value|json_encode()|raw }}'></div>
<div class="json-viewer" data-json='{{ value|json_encode()|e('html_attr') }}'></div>
{% endblock %}

0 comments on commit 86bb0f0

Please sign in to comment.