Project

General

Profile

« Previous | Next » 

Revision 779

Added by thorn over 16 years ago

Some cleanup in search.php

View differences:

search_modext.php
233 233
	if($mod_no_highlight) // no highlighting
234 234
		{ $mod_page_link_target = "&nohighlight=1".$mod_page_link_target; }
235 235
	// clean the text:
236
	$mod_text = str_replace(array("\x0D","\x0A"), ' ', $mod_text);
236
	$mod_text = preg_replace('/\s+/', ' ', $mod_text);
237 237
	$mod_text = preg_replace('#<(!--.*--|style.*</style|script.*</script)>#SiU', ' ', $mod_text);
238 238
	$mod_text = preg_replace('#<(br( /)?|dt|/dd|/?(h[1-6]|tr|table|p|li|ul|pre|code|div|hr))[^>]*>#Si', '.', $mod_text);
239 239
	$mod_text = entities_to_umlauts($mod_text, 'UTF-8');

Also available in: Unified diff