Ticket #10378: feed-widget-non-ascii-titles.diff
File feed-widget-non-ascii-titles.diff, 655 bytes (added by , 15 years ago) |
---|
-
wp-includes/default-widgets.php
712 712 if ( ! is_wp_error($rss) ) { 713 713 $desc = esc_attr(strip_tags(@html_entity_decode($rss->get_description(), ENT_QUOTES, get_option('blog_charset')))); 714 714 if ( empty($title) ) 715 $title = htmlentities(strip_tags($rss->get_title()));715 $title = esc_html(strip_tags($rss->get_title())); 716 716 $link = esc_url(strip_tags($rss->get_permalink())); 717 717 while ( stristr($link, 'http') != $link ) 718 718 $link = substr($link, 1);