Title: Stripping html + encoded html
Last modified: October 5, 2019

---

# Stripping html + encoded html

 *  Resolved [logicred](https://wordpress.org/support/users/logicred/)
 * (@logicred)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/stripping-html-encoded-html/)
 * My xml contains this:
 * <HTMLEncodedWebText>
    &lt;SPAN lang=EN-GB&gt; &lt;P dir=ltr align=left&gt;This
   property is now available </HTMLEncodedWebText>
 * I want to strip all the HTML, or just insert it as HTML. I have tried creating
   functions to strip (which work in an external test PHP script):
 *  $stripped = html_entity_decode($thehtml);
    $stripped = strip_tags($stripped);
 * … but the functions are not returning the stirpped code. Any pointers?
    Thanks

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/stripping-html-encoded-html/#post-12010300)
 * Hi [@logicred](https://wordpress.org/support/users/logicred/)
 * You could use this option to import it as HTML: [https://d.pr/i/fAkpaN](https://d.pr/i/fAkpaN).
   Or, use something like this to strip the tags (see: [http://www.wpallimport.com/documentation/developers/execute-php/](http://www.wpallimport.com/documentation/developers/execute-php/)):
 * `[strip_tags({HTMLEncodedWebText[1]})]`
 * If neither of those options work, please open a ticket at [http://www.wpallimport.com/support/](http://www.wpallimport.com/support/)
   and include your actual import file so we can see what’s going on.
 *  Thread Starter [logicred](https://wordpress.org/support/users/logicred/)
 * (@logicred)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/stripping-html-encoded-html/#post-12012269)
 * Thanks all, just posted a support ticket.

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

The topic ‘Stripping html + encoded html’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [logicred](https://wordpress.org/support/users/logicred/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/stripping-html-encoded-html/#post-12012269)
 * Status: resolved