BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.22k stars 1.9k forks source link

Wkhtmltopdf Export Blockquotes Problem #3481

Open thorin8k opened 2 years ago

thorin8k commented 2 years ago

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
  3. Save the page
  4. 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

ssddanbrown commented 2 years ago

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