mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-27 02:21:43 +01:00
Add <pre> tag to define the json as a preformatted text.
This commit is contained in:
@@ -110,7 +110,7 @@ class HtmlEmailFormatter extends NormalizerFormatter
|
|||||||
|
|
||||||
$data = $this->normalize($data);
|
$data = $this->normalize($data);
|
||||||
if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
|
if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
|
||||||
return json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
return '<pre>'.json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE).'</pre>';
|
||||||
}
|
}
|
||||||
|
|
||||||
return str_replace('\\/', '/', json_encode($data));
|
return str_replace('\\/', '/', json_encode($data));
|
||||||
|
|||||||
Reference in New Issue
Block a user