BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Wkhtmltopdf Export Blockquotes Problem

Open thorin8k opened this issue 3 years ago • 1 comments

Describe the Bug

With wkhtmltopdf configured and working well, when i export any page that contains a blockquote > xxx the resulting pdf shows the htmlentity &ldquot.

image

Steps to Reproduce

  1. Configure wkhtmltopdf
  2. Create a page with a blockquote
> This is a test
  1. Save the page
  2. Export as PDF

Expected Behaviour

The document should render the htmlentity correctly as a quote.

Screenshots or Additional Context

No response

Browser Details

Any Browser

Exact BookStack Version

v22.04.2

PHP Version

7.4.26

Hosting Environment

Docker on Debian 10 exposed with nginx proxy manager

thorin8k avatar Jun 08 '22 06:06 thorin8k

Thanks for reporting @thorin8k.

I can confirm this. Occurs within the document parsing calls that are specifically ran for PDF HTML formatting:

https://github.com/BookStackApp/BookStack/blob/1c859e94e03d0407daf55ade43ced245f208f971/app/Entities/Tools/ExportFormatter.php#L155-L156

ssddanbrown avatar Jun 08 '22 11:06 ssddanbrown