Title: Hook before import
Last modified: August 14, 2017

---

# Hook before import

 *  Resolved [nakukryskin](https://wordpress.org/support/users/nakukryskin/)
 * (@nakukryskin)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/hook-before-import/)
 * Hey [@tobiasbg](https://wordpress.org/support/users/tobiasbg/)
 * Thanks for the plugin.
    This is a very useful plugin, but I meet some troubles
   with the import of the HTML. The problem in using invalid markup in the HTML 
   files which provided by another system and problem can’t be done without modification`
   $temp_data` in the `class-import.php` (line 158). Each time when I uploading 
   the file with the invalid markup libxml will return an error (and this is okay)
   but this will be much more powerful if we will modify the `$temp_data` before
   starting working with it in the next step. Something like `$temp_data = apply_filters('
   tablepress_html_import_temp_data', $temp_data);` will be enough I think.
 * Thanks, Vlad.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/hook-before-import/#post-9411059)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I saw your GitHub pull requests for this and will take a more detailed look there!
 * Regards,
    Tobias
 *  Thread Starter [nakukryskin](https://wordpress.org/support/users/nakukryskin/)
 * (@nakukryskin)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/hook-before-import/#post-9411084)
 * Hey, Tobias!
 * This is not a trouble 🙂 But I think this will be a more helpful solution. Let’s
   move to the GitHub to discuss this.
 * Thanks!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/hook-before-import/#post-9411897)
 * Hi,
 * yes, that will be the best here.
 * Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hook before import’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [Import](https://wordpress.org/support/topic-tag/import/)
 * [request](https://wordpress.org/support/topic-tag/request/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/hook-before-import/#post-9411897)
 * Status: resolved