October CMS resources and help articles

Simple and to the point. Optimized by the community.

Remove spaces from a string

0
by Jake Feeley, last modified on November 8th, 2019

You can use the |replace filter to remove spaces from a string

For example:

{{ record.measurement }} outputs 10 mm

by adding the|replace filter we get:

{{ record.measurement|replace({' ': '' }) }} outputs 10mm

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?