index.js
function(src, noEscape) {
    var attrLen, newKey;
    if (helper.isArray(src)) {
      var attrLen = src.length;
      for (var i = 0; i < attrLen; i++) {
        src[i] = helper.pasteurize(src[i], noEscape);
      }
    } else if (this.isString(src)) {
      src = helper.scrub(src, noEscape);
    } else if (helper.isObject(src)) {
      var newSrc = {};
      for (key in src) {
        newKey = helper.scrub(key);
        newSrc[newKey] = helper.pasteurize(src[key], noEscape);
      }
      src = newSrc;
    }

    return src;
  }
function(src, noEscape) {
    var attrLen, newKey;
    if (helper.isArray(src)) {
      var attrLen = src.length;
      for (var i = 0; i < attrLen; i++) {
        src[i] = helper.pasteurize(src[i], noEscape);
      }
    } else if (this.isString(src)) {
      src = helper.scrub(src, noEscape);
    } else if (helper.isObject(src)) {
      var newSrc = {};
      for (key in src) {
        newKey = helper.scrub(key);
        newSrc[newKey] = helper.pasteurize(src[key], noEscape);
      }
      src = newSrc;
    }

    return src;
  }
function ( src , noEscape ) { var attrLen , newKey ; if ( helper . isArray ( src ) ) { var attrLen = src . length ; for ( var i = 0 ; i < attrLen ; i ++ ) { src [ i ] = helper . pasteurize ( src [ i ] , noEscape ) ; } } else if ( this . isString ( src ) ) { src = helper . scrub ( src , noEscape ) ; } else if ( helper . isObject ( src ) ) { var newSrc = { } ; for ( key in src ) { newKey = helper . scrub ( key ) ; newSrc [ newKey ] = helper . pasteurize ( src [ key ] , noEscape ) ; } src = newSrc ; } return src ; }
Cleans an object thoroughly.  Script scrubbed, html encoded.
Cleans an object thoroughly . Script scrubbed html encoded .