Work in Softeq. Usefull codesnoppets

1
2
//trim strin
text = text.replace(/^\s+|\s+$/g, '');