source/php/Module/Rss/Rss.php
public static function getRssSummary($summary = '')
    {
        $summary = @html_entity_decode($summary, ENT_QUOTES, get_option('blog_charset'));
        $summary = esc_attr(wp_trim_words($summary, 50, ' [&hellip;]'));

        // Change existing [...] to [&hellip;].
        if ('[...]' == substr($summary, -5)) {
            $summary = substr($summary, 0, -5) . '[&hellip;]';
        }

        $summary = esc_html($summary);

        return $summary;
    }
public static function getRssSummary($summary = '')
    {
        $summary = @html_entity_decode($summary, ENT_QUOTES, get_option('blog_charset'));
        $summary = esc_attr(wp_trim_words($summary, 50, ' [&hellip;]'));

        // Change existing [...] to [&hellip;].
        if ('[...]' == substr($summary, -5)) {
            $summary = substr($summary, 0, -5) . '[&hellip;]';
        }

        $summary = esc_html($summary);

        return $summary;
    }
public static function getRssSummary ( $ summary = '' ) { $ summary = @ html_entity_decode ( $ summary , ENT_QUOTES , get_option ( 'blog_charset' ) ) ; $ summary = esc_attr ( wp_trim_words ( $ summary , 50 , ' [&hellip;]' ) ) ; // Change existing [...] to [&hellip;]. if ( '[...]' == substr ( $ summary , - 5 ) ) { $ summary = substr ( $ summary , 0 , - 5 ) . '[&hellip;]' ; } $ summary = esc_html ( $ summary ) ; return $ summary ; }
Sanitize and trim summary
@param  string $summary default RSS entry summary
@return string          sanitized entry
Sanitize and trim summary