From 5c05846f78d0239058cf9582d4e59e9746bec533 Mon Sep 17 00:00:00 2001 From: Florian ALEXANDRE Date: Mon, 29 Jul 2024 11:28:08 +0200 Subject: [PATCH] feat: import export bundle --- .../Item/ValueTransformer/Ibexa/HtmlToTextBlockTransformer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/ImportExportBundle/src/lib/Item/ValueTransformer/Ibexa/HtmlToTextBlockTransformer.php b/components/ImportExportBundle/src/lib/Item/ValueTransformer/Ibexa/HtmlToTextBlockTransformer.php index 1b23efb02..01eeec6dd 100644 --- a/components/ImportExportBundle/src/lib/Item/ValueTransformer/Ibexa/HtmlToTextBlockTransformer.php +++ b/components/ImportExportBundle/src/lib/Item/ValueTransformer/Ibexa/HtmlToTextBlockTransformer.php @@ -9,7 +9,6 @@ class HtmlToTextBlockTransformer extends AbstractItemValueTransformer { - public function transform($value, array $options = []) { if (null === $value) { @@ -21,7 +20,7 @@ public function transform($value, array $options = []) // Add line breaks after block-level closing tags foreach ($blockTags as $tag) { - $value = preg_replace('/<\/' . $tag . '>/', "\n", $value); + $value = preg_replace('/<\/'.$tag.'>/', "\n", $value); } // Replace
tags with newlines