Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

CDATA Modifier

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

title: My Very Own Podcast
{{ title | cdata }}
{!! Statamic::modify($title)->cdata() !!}
<![CDATA[My Very Own Podcast]]>