Error when Printing using Template > SyntaxError: Unexpected token> Advanced PDF/HTML Template

When printing a record using an Advanced PDF/HTML Template, you run into the ff error: “SyntaxError: Unexpected token: <“

Solution

Possible Solution to this error is to check for invalid XML characters [<, >, “, ‘, &] in the template. These characters need to be replaced with the corresponding Escape String as shown below.

Character Escape String:

< – &lt;

> – &gt;

” – &quot;

‘ – &apos;

& – &amp;

Leave a comment

Your email address will not be published. Required fields are marked *