Project

General

Profile

« Previous | Next » 

Revision 761

Added by thorn over 16 years ago

search: great speed-up with large pages - requires PHP >= 4.3.3; small speed-up for PHP < 4.3.3.
FCK-Editor: loads large pages faster

View differences:

include.php
24 24
*/
25 25

  
26 26
function reverse_htmlentities($mixed) {
27
	$htmltable = get_html_translation_table(HTML_ENTITIES);
28
	foreach($htmltable as $key => $value) {
29
		$mixed = ereg_replace(addslashes($value),$key,$mixed);
30
		}
27
	$mixed = str_replace(array('&gt;','&lt;','&quot;','&amp;'), array('>','<','"','&'), $mixed);
31 28
	return $mixed;
32 29
}
33 30

  

Also available in: Unified diff