cancel
Showing results for 
Search instead for 
Did you mean: 

HTML showing on PDF Invoice

HTML showing on PDF Invoice

I am having an issue with the PDF invoice.

 

We sell cloths and I use " as an abbreviation for inch, when I print the invoice instead of 36" for example I get 36"

 

I am guessing I need to use htmlspecialchars_decode but where do I add it?

 

Thanks

1 REPLY

Re: HTML showing on PDF Invoice

I am sure there is a better way of doing it but I change the line under custom options in DefaultInvoice.php

 

/vendor/magento/module-sales/Model/Order/Pdf/Items/Invoice

 

$lines[][] = ['text' => $this->string->split(htmlspecialchars_decode($value), 50, true, true), 'feed' => 60];