---
title: "TrimExplodeViewHelper"
manual: "maps2 (Maps2)"
version: "13.1"
source: "AdministratorManual/Template/ViewHelpers/TrimExplodeViewHelper.rst"
rendered: "2026-10-01T12:50:05+00:00"
---

# TrimExplodeViewHelper {#viewhelper-trim-explode}

This is a ViewHelper to convert a comma separated value into an array.
All values will be trimmed.

## General properties {#viewhelper-trim-explode-properties}

-   -   *Name:* Name:
    -   *Type:*

        Type:
        :Description: Description:
        :Default value: Default value:
-   -   *Name:*

    -   *Type:* string
    -   *Description:* Delimiter
    -   *Default value:* ,

## Examples {#viewhelper-trim-explode-examples}

### Basic example {#viewhelper-trim-explode-basic-example}

```html
<f:for each="{poiCollection.address -> maps2:trimExplode()}" as="address" iteration="iterator">
  ..do something with {address}
</f:for>
```
