Question: Product Details Not Displayed The Same In Invoice

Product Details Not Displayed The Same In Invoice

In Products, I can create a product and in the Details field I can use <br> tags (and other tags, too) to create formatted details. When this is viewed in List Products, the formatted outpu

SS

Scott Smith

Asked
In Products, I can create a product and in the Details field I can use <br> tags (and other tags, too) to create formatted details.

When this is viewed in List Products, the formatted output is shown and not the raw tags.

However, when the product is added in Add Invoice, the detail tags are shown rather than the formatted details.

How can I get the details from the product to display in their formatted form during add invoice?

Also, if item details are entered on multiple lines, when the item is displayed by view invoice the details are collapsed into a single line.

As with above, how can I get view invoice to retain the newlines?

I don't really care about other tags. I'm only concerned about retaining newlines.

Thanks
  • SS

    Scott Smith

    Answered
    You can close this. I didn't resolve tags not being preserved; however, I did solve preserving newlines.
  • MS

    Mian Saleem

    Answered
    Hello,

    You can try `html_entity_decode` to convert HTML entities to their corresponding characters.

    Thank you
  • Login to Reply