Skip to content

Allow HTML rendering in Prettyblock Title headings#1009

Merged
CySSoO merged 1 commit intoprettyblockfrom
cyssoo/allow-html-input-in-prettyblock-title
Mar 20, 2026
Merged

Allow HTML rendering in Prettyblock Title headings#1009
CySSoO merged 1 commit intoprettyblockfrom
cyssoo/allow-html-input-in-prettyblock-title

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Mar 20, 2026

Motivation

  • Allow authors to include inline HTML (for example <span>) inside Prettyblock titles so H1–H6 headings can contain formatted fragments while keeping the same back-office input field and settings.

Description

  • Replaced the escaped title output with raw Smarty output in views/templates/hook/prettyblocks/prettyblock_heading.tpl by changing {$block.settings.title|escape:'htmlall':'UTF-8'} to {$block.settings.title nofilter} to allow HTML rendering inside the heading element.

Testing

  • Ran git diff -- views/templates/hook/prettyblocks/prettyblock_heading.tpl to confirm the exact template change and it succeeded.
  • Inspected the updated file content with nl -ba views/templates/hook/prettyblocks/prettyblock_heading.tpl | sed -n '30,50p' to verify the new nofilter usage and it succeeded.
  • No automated unit tests were modified by this change.

Codex Task

@CySSoO CySSoO merged commit 834ca08 into prettyblock Mar 20, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant