Forums

HTML in Excerpt? (2 posts)

  1. kaiserthegreat
    Member
    Posted 2 years ago #

    If "excerpt" is supposed to strip all HTML, how come it's putting a carriage return where a paragraph is when you read the full article?

    http://www.livinglegend.org/

  2. kaiserthegreat
    Member
    Posted 2 years ago #

    I did this and it seems to have worked:

    <?php $excerpt = strip_tags(get_the_excerpt());
            echo $excerpt; ?>

    So resolved, but isn't it supposed to do that automatically?

Topic Closed

This topic has been closed to new replies.

About this Topic