I have a project where our customers enter a text that then is passed to jsreport to generate a docx, the issue is that the payload we're passing seems like this:
{ "title": "A random text with a special character \u0000" }
And in the template we have something like this:
{{ title }}
The issue is that the generated docx is invalid, apparently the special characters won't be escaped and the office suites will fail to load:
https://playground.jsreport.net/w/anon/NjdMzfBD
Should the library escape those characters so that the generation doesn't fail?
Hi,
I have a project where our customers enter a text that then is passed to jsreport to generate a docx, the issue is that the payload we're passing seems like this:
And in the template we have something like this:
The issue is that the generated docx is invalid, apparently the special characters won't be escaped and the office suites will fail to load: https://playground.jsreport.net/w/anon/NjdMzfBD
Should the library escape those characters so that the generation doesn't fail?