Title: Email Parsing Engine Stripping Code
Last modified: March 31, 2017

---

# Email Parsing Engine Stripping Code

 *  [gazmcj](https://wordpress.org/support/users/gazmcj/)
 * (@gazmcj)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/email-parsing-engine-stripping-code/)
 * We have created custom email notification templates by duplicating the core templates
   into the child theme as per the docs. The HTML of the emails has been tested 
   outside of the WooCommerce ecosystem and work fine.
 * Once they are placed into the email-header.php, email-footer.php, email-styles.
   php and customer-invoice.php format certain pieces of code are stripped when 
   the emails are produced out of WooCommerce.
 * This is code being stripped:
    [https://gist.github.com/anonymous/aaaf9bb73eaabff0bc9976f2d72ff6cf](https://gist.github.com/anonymous/aaaf9bb73eaabff0bc9976f2d72ff6cf)
   [https://gist.github.com/anonymous/ee81354ac4d731234a5a569fb623ae7f](https://gist.github.com/anonymous/ee81354ac4d731234a5a569fb623ae7f)
 * This code allows us to do custom content on desktop and mobile and we need a 
   fix to stop WooCommerce stripping it.
 * Any suggestions would be greatly appreciated.

The topic ‘Email Parsing Engine Stripping Code’ 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

 * [emails](https://wordpress.org/support/topic-tag/emails/)

 * 0 replies
 * 1 participant
 * Last reply from: [gazmcj](https://wordpress.org/support/users/gazmcj/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/email-parsing-engine-stripping-code/)
 * Status: not resolved