Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter newcomsolution

    (@newcomsolution)

    This part should be commented:

    $excerpt = preg_replace(” (\[.*?\])”, ”, $excerpt);
    $excerpt = strip_tags( strip_shortcodes($excerpt) );
    $excerpt = substr($excerpt, 0, $limit);
    $excerpt = trim(preg_replace( ‘/\s+/’, ‘ ‘, $excerpt));
    $excerpt .= ‘…’;

    then its works!

    Plugin Author Brian Hogg

    (@brianhogg)

    Hi Yusuf,

    Yes the plugin does currently strip tags out of the excerpt similar to the regular WordPress excerpt. This helps with formatting in a list view. I’ll look into adding a hook or filter for those that want to not strip tags or include the full event content/description.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excerpt suspends HTML’ is closed to new replies.