Skip to content

Commit 69f3707

Browse files
committed
Replace new lines with spaces
1 parent 6032e39 commit 69f3707

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Utils.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class Utils
77
public static function stripTagsMaintainWhitespace(string $html)
88
{
99
$plaintext = $html;
10+
$plaintext = str_replace(PHP_EOL, ' ', $plaintext);
1011
$plaintext = str_replace('<', ' <', $plaintext);
1112
$plaintext = strip_tags($plaintext);
1213
$plaintext = str_replace(' ', ' ', $plaintext);

0 commit comments

Comments
 (0)