json htmlentities
This commit is contained in:
parent
ef2bf6e3b6
commit
e28ab2696e
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ class AdminerJsonColumn
|
||||||
$name = $field['field'];
|
$name = $field['field'];
|
||||||
?>
|
?>
|
||||||
<a href="#" id="toggle_json_<?= $name ?>">show as table</a><br>
|
<a href="#" id="toggle_json_<?= $name ?>">show as table</a><br>
|
||||||
<pre id="show_json_<?= $name ?>" style="display: none"><?= json_encode($json, JSON_PRETTY_PRINT); ?></pre>
|
<pre id="show_json_<?= $name ?>" style="display: none"><?= htmlentities(json_encode($json, JSON_PRETTY_PRINT)); ?></pre>
|
||||||
<script <?= nonce() ?>>
|
<script <?= nonce() ?>>
|
||||||
document.getElementById('toggle_json_<?= $name ?>').addEventListener('click', function (e) {
|
document.getElementById('toggle_json_<?= $name ?>').addEventListener('click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue