how to use force_filtered_html_on_import in add_filter?

The solution that I’ve found is to add this line just before doing the import:

        if (function_exists('kses_remove_filters')) {
        kses_remove_filters();
        }

That will disable the kses filters responsible for stripping HTML tag inside the post_content.

I have successfully added this to the first plugin. Once this is disabled, it seems that when the import call to the second plugin has been made, it will effectively disable these filters as well.

I hope this will help anyone having an issue of filtered HTML caused by wp_insert_post.