Posted By

nonsalant on 11/02/10


Tagged

html wordpress


Versions (?)

Excerpt without a paragraph tag


 / Published in: PHP
 

URL: http://wordpress.org/support/topic/strip-html-from-template-tag-excerpt

This strips out any html tags (like paragraph tags) from the excerpt in WordPress.

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

Report this snippet  

You need to login to post a comment.