Return to Snippet

Revision: 35112
at November 2, 2010 19:50 by nonsalant


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

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

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

Initial Title
Excerpt without a paragraph tag

Initial Tags
html, wordpress

Initial Language
PHP