Way to strip HTML from the_content ?
-
Problem:
Go here: https://blog.filmrot.com/
Note one of the Twitter posts
Hover the “ReTweet” link – notice that the text inside of the link contains HTMLI need a way to strip all html from a post. My Google-fu is failing me and I’ve searched the codex and the plugin directory. I even tried to do it with pure PHP. I know there has to be a way to do this, I’m just not finding it. Hoping someone here knows of a method.
Here is the pure PHP method I tried within TheLoop, with zero result…
$content2strip = the_content('Read the rest of this entry »'); echo strip_tags($content2strip);
Thanks! –James
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Way to strip HTML from the_content ?’ is closed to new replies.