Wkhtmltopdf Export Blockquotes Problem #2835

Open
opened 2026-02-05 05:23:55 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @thorin8k on GitHub (Jun 8, 2022).

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

Originally created by @thorin8k on GitHub (Jun 8, 2022). ### 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](https://user-images.githubusercontent.com/50626175/172547863-244fa100-a0ef-4e20-9443-d6b3199a295b.png) ### 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
OVERLORD added the 🐛 Bug label 2026-02-05 05:23:55 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jun 8, 2022):

Thanks for reporting @thorin8k.

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

1c859e94e0/app/Entities/Tools/ExportFormatter.php (L155-L156)

@ssddanbrown commented on GitHub (Jun 8, 2022): 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2835