Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to strip p tags (html) from excerpt

  • Avatar of bpisimone
    bpisimone
    Participant

    @bpisimone

    I was wondering how I could strip html from

    <?php echo bp_create_excerpt($post->post_content) ?>

    ?

    Like this I get ugly output and various <p> tags will mess with the styling. Instead it would be nice to just use it like this <p><?php echo bp_create_excerpt($post->post_content) ?></p>.

You must be logged in to reply to this topic.