Skip to content

Fix inline theme script HTML escaping#2809

Merged
magurotuna merged 2 commits intomainfrom
theme-script-escaping
Jan 7, 2026
Merged

Fix inline theme script HTML escaping#2809
magurotuna merged 2 commits intomainfrom
theme-script-escaping

Conversation

@magurotuna
Copy link
Member

@magurotuna magurotuna commented Jan 5, 2026

Fixes JavaScript syntax error on all pages caused by the inline theme script being HTML-escaped (''). Use dangerouslySetInnerHTML to prevent escaping.

Before

image

After (with this fix)

image

Copy link
Member

@crowlKats crowlKats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@magurotuna magurotuna merged commit 5b64150 into main Jan 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants