/ Published in: JavaScript
Expand |
Embed | Plain Text
text = text.replace(/^\s+|\s+$/g, '');
You need to login to post a comment.
pablazo on 11/06/07
2 people have marked this snippet as a favorite
text = text.replace(/^\s+|\s+$/g, '');
You need to login to post a comment.