--- core/string_api.php.original 2006-08-07 15:24:57.000000000 +0300 +++ core/string_api.php 2006-08-07 15:29:47.000000000 +0300 @@ -682,22 +682,14 @@ # Calls htmlentities on the specified string, passing along # the current charset, if the current PHP version supports it. function string_html_entities( $p_string ) { - if ( php_version_at_least( '4.1.0' ) ) { - return htmlentities( $p_string, ENT_COMPAT, lang_get( 'charset' ) ); - } else { return htmlentities( $p_string ); - } } # -------------------- # Calls htmlspecialchars on the specified string, passing along # the current charset, if the current PHP version supports it. function string_html_specialchars( $p_string ) { - if ( php_version_at_least( '4.1.0' ) ) { - return htmlspecialchars( $p_string, ENT_COMPAT, lang_get( 'charset' ) ); - } else { return htmlspecialchars( $p_string ); - } } # --------------------