Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error blank space character not defined #71

Open
prakashsinghgaur opened this issue Sep 13, 2016 · 1 comment
Open

Error blank space character not defined #71

prakashsinghgaur opened this issue Sep 13, 2016 · 1 comment

Comments

@prakashsinghgaur
Copy link

I have a field in which users will enter full html text and a pdf should be generated.

But when I enter a blank space using some text editor which is   the following error comes:-

Xml parsing error "Entity 'nbsp' not defined
So, how this   character can be defined in xmlParser.

I guess there might be more html entities like this one which are not identified by the xmlParser.

Thanks

@prakashsinghgaur
Copy link
Author

specifying doctype in the pdf twig template resolved the issue:-

<!DOCTYPE pdf SYSTEM "%resources%/dtd/doctype.dtd">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant