Return to Snippet

Revision: 565
at July 19, 2006 09:47 by nicolaspar


Initial Code
function decodeHTML( $string ) {
	$string = strtr( $string, array_flip(get_html_translation_table( HTML_ENTITIES ) ) );
	$string = preg_replace( "/&#([0-9]+);/me", "chr('\\1')", $string );
	return $string;
}

Initial URL


Initial Description


Initial Title
Php decodear html

Initial Tags


Initial Language
PHP