Make WordPress Core

Ticket #6077: html_entity_decode.diff

File html_entity_decode.diff, 560 bytes (added by tenpura, 18 years ago)
  • wp-includes/formatting.php

     
    13831383 */
    13841384function wp_html_excerpt( $str, $count ) {
    13851385        $str = strip_tags( $str );
    1386         $str = html_entity_decode( $str, ENT_QUOTES);
     1386        $str = @html_entity_decode( $str, ENT_QUOTES, get_option('blog_charset') );
    13871387        $str = mb_strcut( $str, 0, $count );
    13881388        // remove part of an entity at the end
    13891389        $str = preg_replace( '/&[^;\s]{0,6}$/', '', $str );