Skip to content

Conversation

@s2b
Copy link
Contributor

@s2b s2b commented Nov 3, 2025

[TASK] Deprecate CDATA removal from templates (#1231)

Quite early in the development of Fluid, the decision has been made
to remove <![CDATA[...]]> sections from templates. The exact reason
remains unclear, as 978071f only
mentions that this has been added, but not why:

  • replace cdata sections with empty lines (including nested cdata)

As this modifies templates in an unnecessary way, this behavior is now
deprecated: From Fluid 5 onwards, CDATA sections will just remain in
Fluid templates untouched. Until then, a deprecation will be emitted
to let users know that this will change in the future.

Quite early in the development of Fluid, the decision has been made
to remove `<![CDATA[...]]>` sections from templates. The exact reason
remains unclear, as 978071f only
mentions that this has been added, but not why:

> - replace cdata sections with empty lines (including nested cdata)

As this modifies templates in an unnecessary way, this behavior is now
deprecated: From Fluid 5 onwards, CDATA sections will just remain in
Fluid templates untouched. Until then, a deprecation will be emitted
to let users know that this will change in the future.
@s2b s2b merged commit fca7f44 into 4.5 Nov 3, 2025
10 checks passed
@s2b s2b deleted the backport branch November 3, 2025 18:32
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.

3 participants