Version v5.11.33
Environment Docker
Checklist
- Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja? Yes
- Have you searched existing issues? Yes
- Have you inspected the logs in storage/logs/laravel.log for any errors? No
Describe the bug
HTML/XML tags are not being rendered as text in the Invoice PDF. We need to add <January><2025>
as text in the invoice item name or description but it is being rendered as blank text in the PDF.
I tried creating a product with the name and description as <January><2025>
but it is not showing in the PDF generated.
Also tried escaping it using <January><2025>
but the less than and greater than symbols are not being rendered as symbol but rather text only.
Steps To Reproduce
- Go to invoice ninja demo site https://react.invoicing.co/
- Create New Invoice
- Select any of the customer from the drop down
- Add an item in the invoice
- Select new product with name and description as
<January><2025>
- Scroll down to see the invoice rendered
Item and Description added to the Invoice:
Item and Description not showing in the PDF:
Expected Behavior
We should have option to escape html tags so that the text <January><2025>
should be visible in the invoice generated.