1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Check more style

This commit is contained in:
Jakub Vrana
2025-03-11 12:21:07 +01:00
parent d410cdc5be
commit 5d3376e620
4 changed files with 31 additions and 5 deletions

View File

@@ -21,9 +21,7 @@ class AdminerPrettyJsonColumn {
$json = $this->testJson($value);
if ($json !== $value) {
$jsonText = json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
return <<<HTML
<textarea $attrs cols="50" rows="20">$jsonText</textarea>
HTML;
return "<textarea$attrs cols='50' rows='20'>" . h($jsonText) . "</textarea>";
}
return '';
}