Modifier: cdata


Wraps a string in CDATA tags, useful for formatting characters properly in XML.

title: My Very Own Podcast
{{ title | cdata }}
<![CDATA[My Very Own Podcast]]>

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016