Handlebars whitespace

Hi everybody!!

Can you remove white space from a variable in handerbars in a simple way without having to use a helper?

For exampe I have this line:

{{phoneNumber “ES” c_telefonoWhatsapp “NATIONAL”}}

How can I remove the white spaces from the variable {{this.c_telefonoWhatsapp}}

the variable {{this.c_telefonoWhatsapp}} is the type text and contains a phone number separated by blank spaces, for example: 666 66 66 66 and I would like to format it to 666666666.

Thanks for your help.

regards,

Hey @Sergio_Hernandez ,

As of today, HBS inbuilt helpers support only trimming(removing leading and trailing spaces) but not removing spaces between the string. you’ll need to create a helper to do this job.