Get the Excerpt Without HTML tags, Just the Text

You may want to remove the “paragraph” tags from the excerpt in your loop. This is useful particularly for the purpose of wrapping each excerpt with a span element. HTML paragraph tags are not valid within span tags. It’s easy to get just the excerpt text, without any HTML tags. You do not have to strip any html tags. Just call this excerpt like this:

echo get_the_excerpt();

This simply returns the text without any HTML.

See more:

We've One Response

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]