WordPress.org

Forums

Blogger Importer
[resolved] I Want My Inline STYLE, INPUT, IFRAME etc tags? (4 posts)

  1. EXEIdeas
    Member
    Posted 10 months ago #

    Hi, I used this plugin but lost my all inline STYLE, INPUT, IFRAME tags, IDs, classes. So I want them all in my WordPress post so How to allow this plugin to import all tags, IDs, classes?

    https://wordpress.org/plugins/blogger-importer/

  2. Workshopshed
    Member
    Plugin Author

    Posted 10 months ago #

    It should not lose IFrames, we did have an issue a few versions back where it was not using the correct sanitiser due to an issue with SimplePie but that should be fixed.

    Do you have an example of one of your iframes that is getting stripped?

    The code for "cleaning" the posts should be in blogger-importer-sanitize.php and you should be able to change that to include Input, Class and ID.

    STYLE tags are intentionally stripped out so that the WordPress theme can control the appearance rather than old blogger tags.

  3. EXEIdeas
    Member
    Posted 10 months ago #

    Q1.) How To Imports All Tags And Attributes?
    Ans.) Do the following import add tags and attributes from blogger.
    1.) Go To Your FTP.
    2.) Edit "/wordpress/wp-content/plugins/blogger-importer/blogger-importer-sanitize.php".
    3.) Find The Below Line To Imports Tags...
    var $strip_htmltags = array('base', 'blink', 'body', 'doctype', 'font', 'form', 'frame', 'frameset', 'html', 'input', 'marquee', 'meta', 'script', 'style');
    4.) Remove your desired tag from this banned list to get in your WordPress blog.
    5.) Find The Below Line To Imports Attributes...
    var $strip_attributes = array('bgsound', 'class', 'expr', 'id', 'imageanchor', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc', 'trbidi');
    6.) Remove your desired attributes from this banned list to get in your WordPress blog.
    7.) Save and Done.

  4. EXEIdeas
    Member
    Posted 10 months ago #

    Thanks for replying and answering me. Now I got what I want and shared the whole steps in upper reply yo new comers can get it perfectly if they want.

Reply

You must log in to post.

About this Plugin

  • Blogger Importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic