Make WordPress Core


Ignore:
Timestamp:
03/03/2009 06:37:25 PM (15 years ago)
Author:
ryan
Message:

Pass blog charset to html_entity_decode(). Props adferguson. fixes #7563

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r10670 r10688  
    15061506    while ( strstr($link, 'http') != $link )
    15071507        $link = substr($link, 1);
    1508     $desc = attribute_escape(strip_tags(html_entity_decode($rss->get_description(), ENT_QUOTES)));
     1508    $desc = attribute_escape(strip_tags(html_entity_decode($rss->get_description(), ENT_QUOTES, get_option('blog_charset'))));
    15091509    $title = $options[$number]['title'];
    15101510    if ( empty($title) )
     
    15761576            $title = __('Untitled');
    15771577
    1578         $desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item->get_description(), ENT_QUOTES))));
     1578        $desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item->get_description(), ENT_QUOTES, get_option('blog_charset')))));
    15791579        $desc = wp_html_excerpt( $desc, 360 ) . ' […]';
    15801580        $desc = wp_specialchars( $desc );
Note: See TracChangeset for help on using the changeset viewer.