Summary: | pdftotext -htmlmeta should quote text content | ||
---|---|---|---|
Product: | poppler | Reporter: | Jean-Francois Dockes <jf> |
Component: | utils | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Pdf document with a title property, and a text body, containing HTML special characters |
Description
Jean-Francois Dockes
2014-08-25 12:35:04 UTC
Having the file to reproduce will make it easier to fix, so yes, attach such a file. Created attachment 105255 [details]
Pdf document with a title property, and a text body, containing HTML special characters
The HTML special characters, should be replaced with character entities in the HTML output (< should become < etc.) but they are not. As a result, some pieces of text disappear in the display (e.g. <un tag>), or bad HTML syntax results in unpredictable behaviour.
Forgot: if someone is looking at this, the problem is also present for the "content" attribute of <meta> elements. Generally, no text should go from the PDF to the HTML document without being escaped. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/485. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.