fix nl2br filter

This commit is contained in:
ghost 2024-02-14 21:05:20 +02:00
parent 1ef478004c
commit 48339a1076
4 changed files with 4 additions and 6 deletions

View File

@ -92,9 +92,7 @@ class AppExtension extends AbstractExtension
case \Kvazar\Index\Manticore::TYPE_STRING:
return nl2br(
$value
);
return (string) $value;
case \Kvazar\Index\Manticore::TYPE_BIN:

View File

@ -27,7 +27,7 @@
{{ record.key | format_type(record.type.key) }}
</div>
<div class="mb-20 of-a">
{{ record.value | format_type(record.type.value) }}
{{ record.value | format_type(record.type.value) | nl2br }}
</div>
<div class="f-s-12">
{{ record.time | format_date }} {{ 'in' | trans }} {{ record.block }}

View File

@ -28,7 +28,7 @@
{{ record.key | format_type(record.type.key) }}
</div>
<div class="mb-20 of-a">
{{ record.value | format_type(record.type.value) }}
{{ record.value | format_type(record.type.value) | nl2br }}
</div>
<div class="f-s-12">
{{ record.time | format_date }} {{ 'in' | trans }} {{ record.block }}

View File

@ -28,7 +28,7 @@
{{ record.key | format_type(record.type.key) }}
</div>
<div class="mb-20 of-a">
{{ record.value | format_type(record.type.value) }}
{{ record.value | format_type(record.type.value) | nl2br }}
</div>
<div class="f-s-12">
{{ record.time | format_date }} {{ 'in' | trans }} {{ record.block }}