Title: Convert html codes to string with code (WooCommerce)
Last modified: May 4, 2022

---

# Convert html codes to string with code (WooCommerce)

 *  Resolved [mickthemaker](https://wordpress.org/support/users/mickthemaker/)
 * (@mickthemaker)
 * [4 years ago](https://wordpress.org/support/topic/convert-html-codes-to-string-with-code-woocommerce/)
 * Hello,
 * the problem is as follows:
 * On every WooCommerce product (total: 500 products) where an underscore „_“ has
   been used the acf custom field „product_uid“ shows the html character „–“.
 * New WooCommerce products are imported with WP All Import and the unique identifier
   can not be matched since the dash of the existing products are in unicode.
 * Without having to change each record manually, how would I convert the corresponding
   products with the html character to a string? Can someone give me a code example?
   Would I need to create a query that returns all posts for the post type?
 * Alternatively is there a plugin that can be used to convert the html codes to
   text?
 * Thanks in advance & all the best,
    Mick
    -  This topic was modified 4 years ago by [mickthemaker](https://wordpress.org/support/users/mickthemaker/).
    -  This topic was modified 4 years ago by [mickthemaker](https://wordpress.org/support/users/mickthemaker/).

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

 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [4 years ago](https://wordpress.org/support/topic/convert-html-codes-to-string-with-code-woocommerce/#post-15615546)
 * Hi [@mickthemaker](https://wordpress.org/support/users/mickthemaker/)
 * > New WooCommerce products are imported with WP All Import and the unique identifier
   > can not be matched since the dash of the existing products are in unicode.
 * As the products are being imported through WP All Import plugin, have you contacted
   the plugin’s team for ways to overcome this problem? If not, we recommend reaching
   out at their support forum at [https://wordpress.org/support/plugin/wp-all-import/](https://wordpress.org/support/plugin/wp-all-import/).
 * * _This particular forum is for questions that are directly related to the features
   and functionality of the free WooCommerce plugin. While we’re experts on our 
   own products, third-party plugins are best supported by their own developers._
 * > Without having to change each record manually, how would I convert the corresponding
   > products with the html character to a string? Can someone give me a code example?
   > Would I need to create a query that returns all posts for the post type?
 * There are lots of ways to [convert html code to text](https://www.google.com/search?q=convert+html+code+to+text)
   but I couldn’t find a plugin that can do this out of the box. If you happen to
   need a custom solution for this, we can recommend the following places for development-
   oriented questions:
    - WooCommerce Developer Resources Portal: [https://developer.woocommerce.com/](https://developer.woocommerce.com/)
    - WooCommerce Slack Community: [https://woocommerce.com/community-slack/](https://woocommerce.com/community-slack/)
    - WooCommerce Community on Facebook: [https://www.facebook.com/groups/advanced.woocommerce/](https://www.facebook.com/groups/advanced.woocommerce/)
 * Further, for assistance with customization or development with your site, we 
   recommend reaching out to someone on our [customizations page](https://woocommerce.com/customizations/).
 * I hope this points you in the right direction.
 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [4 years ago](https://wordpress.org/support/topic/convert-html-codes-to-string-with-code-woocommerce/#post-15633928)
 * Seems we’ve not had additional inputs on this thread. Thus, we encourage you 
   to make use of the above resources.
 * I’ll go ahead and mark the thread as resolved but please feel free to create 
   a new thread if you have further questions.

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

The topic ‘Convert html codes to string with code (WooCommerce)’ is closed to new
replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [html codes](https://wordpress.org/support/topic-tag/html-codes/)
 * [string](https://wordpress.org/support/topic-tag/string/)

 * 2 replies
 * 2 participants
 * Last reply from: [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/convert-html-codes-to-string-with-code-woocommerce/#post-15633928)
 * Status: resolved