Forum How do I...?

prince: [url]:1: error: unexpected token punctuator("&")

Rutger
Hi there,

I hope you can help me out here.
I am trying to render a pretty big PDF here (250+ pages) and i am running into the above mentioned error message.

I have tried whatever i could think off, but i can't seem to pin down the real issue here.
I think it is somehow CSS related, but the things we have tried don't make it more obvious as to where to find the problem.

Things I have found so far:
- Removing all @fontface declarations from the CSS for this file does render a complete PDF. Only problem is that when i use a different CSS file (both of them are compiled from SCSS files) with the exact same @fontface declarations in it, it also works fine, so that should not be the real problem i think.

To be honest i have no clue as to where to look for the real problem, could you help me out by any chance, or at least point me into the right direction, as the error message is not really clear to me?

Thanks in advance!
With kind regards,
Rutger
mikeday
This error relates to an unexpected '&' character in JavaScript, are you applying your own scripts?
Rutger
Hi Mike,

Thanks for the quick response and pointing me in the right direction.
It appeared to be an '&; character in the full HTML inside a script tag that was added after editing the page in our editor.

So it wasn't actually in my own custom script!

Problem found and almost solved!

Thanks again!

With kind regards,
Rutger