---
title: "Format.cdata ViewHelper <f:format.cdata>"
manual: "Fluid Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/fluid:typo3fluid-fluid-format-cdata"
source: "ViewHelpers/Fluid/Format/Cdata.rst"
rendered: "2026-09-26T08:24:58+00:00"
---

# Format.cdata ViewHelper `<f:format.cdata>` {#typo3fluid-fluid-format-cdata}

> [!NOTE]
> This reference is part of the documentation of Fluid Standalone.
> If you are working with Fluid in TYPO3 CMS, please refer to
> [TYPO3's ViewHelper reference](https://docs.typo3.org/other/typo3/view-helper-reference/14.3/en-us/Global/Format/Cdata.html) instead.

Outputs an argument/value without any escaping and wraps it with CDATA tags.

PAY SPECIAL ATTENTION TO SECURITY HERE (especially Cross Site Scripting),
as the output is NOT SANITIZED!

## Examples {#examples}

### Child nodes {#child-nodes}

```php
<f:format.cdata>{string}</f:format.cdata>

```

Output:

```php
<![CDATA[(Content of {string} without any conversion/escaping)]]>

```

### Value attribute {#value-attribute}

```php
<f:format.cdata value="{string}" />

```

Output:

```php
<![CDATA[(Content of {string} without any conversion/escaping)]]>

```

### Inline notation {#inline-notation}

```php
{string -> f:format.cdata()}

```

Output:

```php
<![CDATA[(Content of {string} without any conversion/escaping)]]>
```

Go to the source code of this ViewHelper: [Format\\CdataViewHelper.php (GitHub)](https://github.com/TYPO3/Fluid/blob/main/src/ViewHelpers/Format/CdataViewHelper.php).

**Arguments**

The following arguments are available for the format.cdata ViewHelper:

-   **value**

    -   *Type:* mixed

    The value to output
