Answer the question
In order to leave comments, you need to log in
How to display the_excerpt stripped of html tags?
By default, the_excerpt() outputs 50 lines from the article, and appends to the tags and ends with [...].
You need to make sure that the_excerpt() outputs just text, without any html tags.
Tried like this:
$text = the_excerpt();
echo strip_tags($text);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question