Modifiers

replace

The replace modifier replaces one text value with another.

Example#

php
{{ phone | replace(" ", "") }}

replace takes two quoted string arguments: the text to find, then the replacement.