[Resolved] strip html from template tag (excerpt)
I’m trying to style the_excerpt().
I hoped to be able to go <p class=”something”>the_excerpt()</p> but the excerpt already has the <p> element included.
Is there a way stripping all HTML from template tags? I tried to use
<?php strip_tags(the_excerpt());?> but this doesn’t seem to work. (sorry my php understanding is limited)
thanks in advance!!
- The topic ‘[Resolved] strip html from template tag (excerpt)’ is closed to new replies.