Platinum Partner

Javacript Trim A String

removes all leading and trailing spaces from string


str.replace(/^\s*/, "").replace(/\s*$/, "");


alternative, extend the string class

String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); }

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}