Skip to content

Commit aaaadf0

Browse files
authored
Remove full head content in HTML to text converter
When extracting text from HTML part all the content between opening and closing tag should be removed
1 parent 426bf96 commit aaaadf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Mime/BodyRenderer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ private function convertHtmlToText(string $html): string
7474
return $this->converter->convert($html);
7575
}
7676

77-
return strip_tags(preg_replace('{<(head|style)\b.*?</\1>}i', '', $html));
77+
return strip_tags(preg_replace('{<(head|style)\b.*?</\1>}is', '', $html));
7878
}
7979
}

0 commit comments

Comments
 (0)