Forums

[resolved] Way to strip HTML from the_content ? (2 posts)

  1. jimrb22
    Member
    Posted 3 years ago #

    Problem:

    Go here: http://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

  2. jimrb22
    Member
    Posted 3 years ago #

    I moved this to a more suitable forum...

    http://wordpress.org/support/topic/268849?replies=1#post-1068240

    Still need help though. Please follow through :)

Topic Closed

This topic has been closed to new replies.

About this Topic