PHP 5 supports specifying output charset for html_entities_decode()

This commit is contained in:
Sebastian Mendel
2007-10-18 07:31:21 +00:00
parent 26599a4fe2
commit 7bb7e7424c

View File

@@ -4120,8 +4120,13 @@ if(!class_exists('TCPDF')) {
* @return string converted * @return string converted
*/ */
function unhtmlentities($text_to_convert) { function unhtmlentities($text_to_convert) {
/**
* PHP 5 supports specifying charset
* cybot_tm 2007-10-18
require_once(dirname(__FILE__).'/html_entity_decode_php4.php'); require_once(dirname(__FILE__).'/html_entity_decode_php4.php');
return html_entity_decode_php4($text_to_convert); return html_entity_decode_php4($text_to_convert);
*/
return html_entity_decode($text_to_convert, ENT_QUOTES, 'UTF-8');
} }
} // END OF CLASS } // END OF CLASS