From 328adac72ac2110f68314e6fcf2faaf0b77682e1 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 23 Nov 2015 15:44:32 -0500 Subject: [PATCH] attempting regex to remove \n --- search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); ?>

- +

-- 2.17.1