---
title: "Format.htmlentitiesDecode ViewHelper <f:format.htmlentitiesDecode>"
manual: "Fluid ViewHelper Reference"
version: "14.3"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-format-htmlentitiesdecode@14.3"
source: "Global/Format/HtmlentitiesDecode.rst"
rendered: "2026-10-01T16:43:06+00:00"
---

# Format.htmlentitiesDecode ViewHelper `<f:format.htmlentitiesDecode>` {#typo3-fluid-format-htmlentitiesdecode}

ViewHelper to apply `html_entity_decode()` to a value, transforming HTML entity representations back into HTML special characters (like `&quot;` to `"`).

Go to the source code of this ViewHelper: [Format\\HtmlentitiesDecodeViewHelper.php (GitHub)](https://github.com/TYPO3/typo3/blob/main/typo3/sysext/fluid/Classes/ViewHelpers/Format/HtmlentitiesDecodeViewHelper.php).

**Table of contents**

-   [Examples](https://docs.typo3.org/permalink/t3viewhelper:examples@14.3)
-   [Arguments of the <f:format.htmlentitiesDecode> ViewHelper](https://docs.typo3.org/permalink/t3viewhelper:arguments-of-the-f-format-htmlentitiesdecode-viewhelper@14.3)

## Examples {#typo3-fluid-format-htmlentitiesdecode-example}

### Default notation {#typo3-fluid-format-htmlentitiesdecode-default-notation}

**packages/my_extension/Resources/Private/Templates/Content/Text.fluid.html**

```html
<f:format.htmlentitiesDecode>{text}</f:format.htmlentitiesDecode>
```

Text containing the following escaped signs: `&amp;` `&quot;` `&#039;` `&lt;` `&gt;`, will be processed by `html_entity_decode()`.
These will result in: `&` `"` `'` `<` `>`.

### Inline notation {#typo3-fluid-format-htmlentitiesdecode-inline-notation}

**packages/my_extension/Resources/Private/Templates/Content/Text.fluid.html**

```html
{text -> f:format.htmlentitiesDecode(encoding: 'ISO-8859-1')}
```

Text containing the following escaped signs: `&amp;` `&quot;` `&#039;` `&lt;` `&gt;`, will be processed by `html_entity_decode()`.
These will result in: `&` `"` `'` `<` `>`.

But encoded as ISO-8859-1.

## Arguments of the `<f:format.htmlentitiesDecode>` ViewHelper {#typo3-fluid-format-htmlentitiesdecode-arguments}

-   **encoding**

    -   *Type:* string

    Define the encoding used when converting characters (Default: UTF-8).

-   **keepQuotes**

    -   *Type:* bool
    -   *Default:* false

    If TRUE, single and double quotes won't be replaced (sets ENT_NOQUOTES flag).

-   **value**

    -   *Type:* string

    string to format
