Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to strip p tags (html) from excerpt

  • Profile photo 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>.

  • The topic ‘How to strip p tags (html) from excerpt’ is closed to new replies.
Skip to toolbar