regex removed
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 20:54:36 +0000 (15:54 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 20:54:36 +0000 (15:54 -0500)
search.php

index c25c697..8aac996 100644 (file)
 
                                 // Highlight matches
                                 $context = nl2br(preg_replace('/'.str_replace('/', '\/', join('|', $terms)).'/i', '<strong>$0</strong>', $output));                         
-                         $noExtraSpace = preg_replace('!\s+!', ' ', $context);
+                       
                                 ?>
 
                                 <p class="search_result_context">
-                                  <?php echo $noExtraSpace ?>
+                                  <?php echo $context ?>
                                 </p>
                               
                 <!-- End of the Contextual/Highlight Search -->