Skip to content

Commit

Permalink
feat: import export bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian ALEXANDRE committed Jul 29, 2024
1 parent a14c412 commit 5c05846
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

class HtmlToTextBlockTransformer extends AbstractItemValueTransformer
{

public function transform($value, array $options = [])
{
if (null === $value) {
Expand All @@ -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 . '>/', "</$tag>\n", $value);
$value = preg_replace('/<\/'.$tag.'>/', "</$tag>\n", $value);
}

// Replace <br> tags with newlines
Expand Down

0 comments on commit 5c05846

Please sign in to comment.