cancel
Showing results for 
Search instead for 
Did you mean: 

Order Emails showing HTML tags from product information.

Order Emails showing HTML tags from product information.

magento 2.3

our Order emails have links to customer uploaded files and images with the item options that are not displaying properly. The HTML code is showing as text instead of executing/rendering into the link or image.

Products look like this in the customers emails 

Well Site Signs
SKU: Lease Signs
LSD Number
g
Emergency Phone Number
6
WHMIS Symbols
<img src="https://magento-67179-1038934.cloudwaysapps.com/pub/media/itoris/files/f/l/flamm-01.png"
width="150" style="display:block; max-width:150px; max-height:150px"/>
Upload data in a file
<a href="https://magento-67179-
1038934.cloudwaysapps.com/sales/download/downloadCustomOption/id/2867/key/dc7c9ea5b08cbcbaa81c/"
target="_blank">PPE7-01.png</a> 100 x 100 px.

How would I fix this so it displays properly for customers getting their order confirmations?

the items come from the items block:

 {{layout handle="sales_email_order_items" order=$order}}
2 REPLIES 2

Re: Order Emails showing HTML tags from product information.

Hi @allen_hardonk,

Make sure that you have chnaged type="text" to type="html" in email_templates.xml, otherwise you'll get plain HTML in your mails.

For more info:
https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/templates/template-email.html

I hope it  will help you!

Re: Order Emails showing HTML tags from product information.

The email type is already HTML for our templates and other HTML tags are being applied properly in other sections, but not the ones being delivered through the product list section.