• Resolved jimrb22

    (@jimrb22)


    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 HTML

    I 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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Way to strip HTML from the_content ?’ is closed to new replies.