We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6032e39 commit 69f3707Copy full SHA for 69f3707
src/Utils.php
@@ -7,6 +7,7 @@ class Utils
7
public static function stripTagsMaintainWhitespace(string $html)
8
{
9
$plaintext = $html;
10
+ $plaintext = str_replace(PHP_EOL, ' ', $plaintext);
11
$plaintext = str_replace('<', ' <', $plaintext);
12
$plaintext = strip_tags($plaintext);
13
$plaintext = str_replace(' ', ' ', $plaintext);
0 commit comments