String

Extensions to the native JavaScript String class.

Credits

Partially based on MooTools, My Object Oriented Javascript Tools.  Copyright © 2006-2007 Valerio Proietti, http://mad4milk.net, MIT Style License.  Partially based on Prototype JavaScript framework, version 1.6.0 © 2005-2007 Sam Stephenson.  Prototype is freely distributable under the terms of an MIT-style license.  For details, see the Prototype web site: http://www.prototypejs.org/

Summary
StringExtensions to the native JavaScript String class.
Functions
stripTagsStrips a string of any HTML tag.
truncateTruncates a string to the given length and appends a suffix to it (indicating that it is only an excerpt).
escapeRegExpReturns string with escaped regular expression characters
trimTrims the leading and trailing spaces off a string.
isEmailNot documented
sNot documented
formatNot documented
parseRelativeTimeNot documented
containsNot documented
camelCaseNot documented
makeClickableNot documented

Functions

stripTags

stripTags: function()

Strips a string of any HTML tag.

Original documentation

http://www.prototypejs.org/api/string/stripTags

truncate

truncate: function(length,
truncation)

Truncates a string to the given length and appends a suffix to it (indicating that it is only an excerpt).

Original documentation

http://www.prototypejs.org/api/string/truncate

Notes

needed for backward compatibility with a third-party UWA implementation

escapeRegExp

escapeRegExp: function()

Returns string with escaped regular expression characters

Original documentation

http://docs.mootools.net/Native/String.js#String.escapeRegExp

Notes

needed for compatibility with Vibes native widget

trim

trim: function()

Trims the leading and trailing spaces off a string.

Original documentation

http://docs.mootools.net/Native/String.js#String.trim

Notes

needed for compatibility with a third-party UWA implementation

isEmail

isEmail: function()

Not documented

Notes

needed for compatibility with a third-party UWA implementation

s

s: function()

Not documented

Notes

needed for compatibility with various Netvibes native widget

format

format : function()

Not documented

Notes

needed for compatibility with various Netvibes native widget (new format)

parseRelativeTime

parseRelativeTime: function(raw,
offset)

Not documented

Notes

needed for Timeline Control, from /js/App/Core/String.js

contains

contains: function(string,
separator)

Not documented

Notes

used in el.hasClassName implementation in Element.js

camelCase

camelCase: function()

Not documented

Notes

used in el.setStyle implementation in Element.js

makeClickable

makeClickable: function()

Not documented

Notes

needed for compatibility with various Netvibes native widget

stripTags: function()
Strips a string of any HTML tag.
truncate: function(length,
truncation)
Truncates a string to the given length and appends a suffix to it (indicating that it is only an excerpt).
escapeRegExp: function()
Returns string with escaped regular expression characters
trim: function()
Trims the leading and trailing spaces off a string.
isEmail: function()
Not documented
s: function()
Not documented
format : function()
Not documented
parseRelativeTime: function(raw,
offset)
Not documented
contains: function(string,
separator)
Not documented
camelCase: function()
Not documented
makeClickable: function()
Not documented