Ticket #6077: html_entity_decode.diff
| File html_entity_decode.diff, 0.5 kB (added by tenpura, 9 months ago) |
|---|
-
wp-includes/formatting.php
old new 1383 1383 */ 1384 1384 function wp_html_excerpt( $str, $count ) { 1385 1385 $str = strip_tags( $str ); 1386 $str = html_entity_decode( $str, ENT_QUOTES);1386 $str = @html_entity_decode( $str, ENT_QUOTES, get_option('blog_charset') ); 1387 1387 $str = mb_strcut( $str, 0, $count ); 1388 1388 // remove part of an entity at the end 1389 1389 $str = preg_replace( '/&[^;\s]{0,6}$/', '', $str );
