strip html from template tag (excerpt)
-
Hi
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!!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘strip html from template tag (excerpt)’ is closed to new replies.