fixed output of bag values
Call json_encode with flags: JSON_UNESCAPED_SLASHES and JSON_UNESCAPED_UNICODE
This commit is contained in:
parent
3c44d487f2
commit
f1632266e4
@ -9,7 +9,8 @@
|
||||
{% for key in bag.keys|sort %}
|
||||
<tr>
|
||||
<th>{{ key }}</th>
|
||||
<td>{{ bag.get(key)|json_encode }}</td>
|
||||
{# JSON_UNESCAPED_SLASHES = 64, JSON_UNESCAPED_UNICODE = 256 #}
|
||||
<td>{{ bag.get(key)|json_encode(64 b-or 256) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
@ -9,7 +9,8 @@
|
||||
{% for key in data|keys|sort %}
|
||||
<tr>
|
||||
<th>{{ key }}</th>
|
||||
<td>{{ data[key]|json_encode }}</td>
|
||||
{# JSON_UNESCAPED_SLASHES = 64, JSON_UNESCAPED_UNICODE = 256 #}
|
||||
<td>{{ data[key]|json_encode(64 b-or 256) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user