From: Anthony Talarico Date: Mon, 23 Nov 2015 20:44:32 +0000 (-0500) Subject: attempting regex to remove \n X-Git-Tag: v1.0.0^2~272^2~5 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=328adac72ac2110f68314e6fcf2faaf0b77682e1;p=WP-Themes%2Fstaffords.git attempting regex to remove \n --- diff --git a/search.php b/search.php index 5807e44..6a84b80 100644 --- a/search.php +++ b/search.php @@ -74,10 +74,11 @@ // Highlight matches $context = nl2br(preg_replace('/'.str_replace('/', '\/', join('|', $terms)).'/i', '$0', $output)); + $noNewLine = preg_replace('/[\n\r]+/', '', $context); ?>

- +