Forums

WordPress is Stripping HTML! (4 posts)

  1. malexandria
    Member
    Posted 1 year ago #

    Hello,

    Every since the new update WordPress has been stripping HTML. Everytime I paste HTML Code in the HTML View and then switch back to Wysywig mode the HTML gets stripped out. Is there a fix for this?

  2. TM3909
    Member
    Posted 1 year ago #

    It depends on what the HTML is. Sometimes wordpress will strip out dangerous code (iframe) or bad code, for example:

    <div>
    <h3>
    Hello World, this is bad code!
    </div>
    </h3>

    If you want specifics you'll have to copy/paste the code you're trying to insert.

  3. malexandria
    Member
    Posted 1 year ago #

    It's generally embed codes from YouTube. So yes, sometimes it's <iframe>. How do I get it to stop???

  4. TM3909
    Member
    Posted 1 year ago #

    You could use something like this: Embed Iframe which uses a shortcode to replace the embed code.

    More info on how that works here: http://wpgarage.com/tips/stop-wordpress-stripping-iframe-html/

    Hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags