mescalante
07/08/2026, 11:04 PMCeligo AI
07/08/2026, 11:04 PMAI generated answer (using internal Slack threads):The error you're encountering, "_Element type "br" must be followed by either attribute specifications, ">" or "/>"_", is related to the way HTML is being parsed in your PDF generation process. It seems like there's an issue with the way the
<br> tag is being used or closed.
From the conversations, it appears that the issue might be related to the truncation of the item description. If the item description contains HTML tags and it's being truncated in the middle of a tag, it could cause this error. For example, if you have a <br> tag in your item description and you truncate the description in the middle of this tag, you'll end up with a broken tag like <br which would cause the error you're seeing.
One solution suggested in the conversations is to stop truncating the item description. If you need to truncate the item description, you would need to escape the HTML inside of it. This can be done using FreeMarker's auto-escaping mechanism. You can find more information about this in the [FreeMarker documentation](https://freemarker.apache.org/docs/dgui_misc_autoescaping.html).
Another potential issue could be the use of the <br> tag itself. In some cases, removing the space in <br /> to make it <br/> could resolve the issue. However, this didn't seem to work in the conversations provided.
Remember to always escape any dynamic content that might contain special characters or HTML tags to avoid such issues.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
07/08/2026, 11:04 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.838989258
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.807617068
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.797363281
Celigo AI
07/08/2026, 11:04 PM