olado/doT

How to use Trim functionality?

aashish-pixere opened this issue · 1 comments

I want to remove whitespace from the string, did dot.js have this type functionality? my data come in JSON format.

Assuming you mean to remove from variables, then you can use any JavaScript expressions, e.g. {{= it.str.trim() }}