Keep script after export html #5085

Closed
opened 2026-02-05 09:39:08 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @LaplusIjns on GitHub (Dec 24, 2024).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I’m trying to add a script to the user’s custom head content and want to keep it after exporting the HTML.
so i can using something like chromium-browser command that have ability to run script tags for dynamic rendering and turn html to pdf
However,
there is a restriction that the exported HTML will filter out all script tags #2490 Is there any way to bypass this?

Exact BookStack Version

v24.10.2

Log Content

No response

Hosting Environment

PHP 8.13 with Windows 11 workstation version

Originally created by @LaplusIjns on GitHub (Dec 24, 2024). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I’m trying to add a script to the user’s custom head content and want to keep it after exporting the HTML. so i can using something like chromium-browser command that have ability to run script tags for dynamic rendering and turn html to pdf However, there is a restriction that the exported HTML will filter out all script tags #2490 Is there any way to bypass this? ### Exact BookStack Version v24.10.2 ### Log Content _No response_ ### Hosting Environment PHP 8.13 with Windows 11 workstation version
OVERLORD added the 🐕 Support label 2026-02-05 09:39:08 +03:00
Author
Owner

@LaplusIjns commented on GitHub (Dec 25, 2024):

alright
after more research
i can use custom theme to get same effect

@LaplusIjns commented on GitHub (Dec 25, 2024): alright after more research i can use custom theme to get same effect
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5085