How to strip p tags (html) from excerpt
-
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.