Ticket #18726: 18726.2.diff

File 18726.2.diff, 533 bytes (added by evansolomon, 20 months ago)
  • wp-includes/formatting.php

     
    18841884        if ( null === $more ) 
    18851885                $more = __( '…' ); 
    18861886        $original_text = $text; 
    1887         $text = strip_tags( $text ); 
     1887        $text = wp_strip_all_tags( $text ); 
    18881888        $words_array = preg_split( "/[\n\r\t ]+/", $text, $num_words + 1, PREG_SPLIT_NO_EMPTY ); 
    18891889        if ( count( $words_array ) > $num_words ) { 
    18901890                array_pop( $words_array );