|
|
@@ -25,7 +25,7 @@ class HtmlHelper
|
|
|
*/
|
|
|
public static function wrapNewlines($content, $tag = 'p', $htmlOptions = [])
|
|
|
{
|
|
|
- $filteredNewLinesContent = preg_replace('((\r?\n)(?:\r?\n))', '$2', $content);
|
|
|
+ $filteredNewLinesContent = preg_replace('/((\r?\n)(?:\r?\n))/', '$2', $content);
|
|
|
$lines = preg_split('/\r?\n/', $filteredNewLinesContent);
|
|
|
|
|
|
return implode("\n", array_map(function ($line) use ($tag, $htmlOptions) {
|