lib/vendor/sugar.js
function() {
      var str = this, args = arguments.length > 0 ? arguments : [''];
      flattenedArgs(args, function(tag) {
        str = str.replace(regexp('<\/?' + escapeRegExp(tag) + '[^<>]*>', 'gi'), '');
      });
      return str;
    }
function() {
      var str = this, args = arguments.length > 0 ? arguments : [''];
      flattenedArgs(args, function(tag) {
        str = str.replace(regexp('<\/?' + escapeRegExp(tag) + '[^<>]*>', 'gi'), '');
      });
      return str;
    }
function ( ) { var str = this , args = arguments . length > 0 ? arguments : [ '' ] ; flattenedArgs ( args , function ( tag ) { str = str . replace ( regexp ( '<\/?' + escapeRegExp ( tag ) + '[^<>]*>' , 'gi' ) , '' ) ; } ) ; return str ; }
*
@method stripTags([tag1], [tag2], ...)
@returns String
@short Strips all HTML tags from the string.
@extra Tags to strip may be enumerated in the parameters, otherwise will strip all.
@example

'<p>just <b>some</b> text</p>'.stripTags()    -> 'just some text'
'<p>just <b>some</b> text</p>'.stripTags('p') -> 'just <b>some</b> text'

*
* @method stripTags ( [ tag1 ] [ tag2 ] ... ) @returns String @short Strips all HTML tags from the string . @extra Tags to strip may be enumerated in the parameters otherwise will strip all . @example