• Resolved olfarin

    (@olfarin)


    Hi,

    First of all thank you for this plugin.

    It works great except for one thing: during a new import to create pages (from a file on my computer), if there is an iframe or script tag in the page content, the import processing will remove these tags.

    For an example, i’ve got this HTML code for the content field of my page at the step 4 of the import:
    <p><iframe width="450" height="250" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?key=XXX&q={latlong_xy[1]}" allowfullscreen></iframe></p>
    When the import processing is complete, the content of my page will be:
    <p></p>

    Same thing for script tag:

    <div id="map"></div>
    <script src="https://maps.googleapis.com/maps/api/js?key=XXX&callback=initMap&libraries=&v=weekly" async></script>

    will become:
    <div id="map"></div>

    I’m an admin user, but I tried to give permission to add shortcode to any user role: the issue is still there.

    WordPress and WP Import Export Lite versions are the latest (5.6.2 for WP, 3.4.1 for your plugin). I didn’t have this issue with “WP all import” plugin, so I think this issue is related to your plugin.

    Is there a solution to keep iframe and script tag during the import process?

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author vjinfotech

    (@vjinfotech)

    Hi,

    Thanks for getting in touch.

    we use standard WordPress procedure for import any data. it include sanitize data. in process of sanitize data it will removed.

    Please mail me on [email protected] with your issue with details. i will provide solution in minimum time.

    let me know if you have any questions.

    Thanks and have a nice day

    Thread Starter olfarin

    (@olfarin)

    Hi,

    Thank you for your quick response.

    I added “iframe” and “script” tags in allowedposttags (array of default allowable HTML tags) in the kses.php file of WordPress.

    Maybe not the most secure solution but it works fine now ??

    Thanks a lot, have a nice day too!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘iframe and script tag are deleted during a new import’ is closed to new replies.