code: function urlEncodeIfNecessary(s) {
  		var regex = /[\\\"<>\.;]/;
  		var hasBadChars = regex.exec(s) != null;
  		return hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;
  	}
docs: /* Filter to avoid XSS attacks