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:
< – <
> – >
” – "
‘ – '
& – &