Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String.prototype.add = function (A) {
- return this + A
- };
- String.prototype.trim = function () {
- return this.replace(/^\s+|\s+$/g, "")
- };
- String.prototype.truncWithEllipis = function (B) {
- var A = this.trim();
- return [A.substring(0, B), "..."].join("")
- };
- String.prototype.stripHTML = function () {
- return this.replace(/(<([^>]+)>)/ig, "")
- };
Advertisement
Add Comment
Please, Sign In to add comment