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/
| String | Extensions to the native JavaScript String class. |
| Functions | |
| stripTags | Strips a string of any HTML tag. |
| truncate | Truncates a string to the given length and appends a suffix to it (indicating that it is only an excerpt). |
| escapeRegExp | Returns string with escaped regular expression characters |
| trim | Trims the leading and trailing spaces off a string. |
| isEmail | Not documented |
| s | Not documented |
| format | Not documented |
| parseRelativeTime | Not documented |
| contains | Not documented |
| camelCase | Not documented |
| makeClickable | Not documented |
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
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
Notes
needed for compatibility with a third-party UWA implementation
Strips a string of any HTML tag.
stripTags: function()
Truncates a string to the given length and appends a suffix to it (indicating that it is only an excerpt).
truncate: function( length, truncation )
Returns string with escaped regular expression characters
escapeRegExp: function()
Trims the leading and trailing spaces off a string.
trim: function()
Not documented
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()