/**@class android.net.UrlQuerySanitizer.IllegalCharacterValueSanitizer implements android.net.UrlQuerySanitizer.ValueSanitizer @extends java.lang.Object Sanitize values based on which characters they contain. Illegal characters are replaced with either space or '_', depending upon whether space is a legal character or not. */ var IllegalCharacterValueSanitizer = { /** Allow space (' ') characters. */ SPACE_OK : "1", /** Allow whitespace characters other than space. The other whitespace characters are '\t' '\f' '\n' '\r' and '\0x000b' (vertical tab) */ OTHER_WHITESPACE_OK : "2", /** Allow characters with character codes 128 to 255. */ NON_7_BIT_ASCII_OK : "4", /** Allow double quote characters. ('"') */ DQUOTE_OK : "8", /** Allow single quote characters. ('\'') */ SQUOTE_OK : "16", /** Allow less-than characters. ('<') */ LT_OK : "32", /** Allow greater-than characters. ('>') */ GT_OK : "64", /** Allow ampersand characters ('&') */ AMP_OK : "128", /** Allow percent-sign characters ('%') */ PCT_OK : "256", /** Allow nul characters ('\0') */ NUL_OK : "512", /** Allow text to start with a script URL such as "javascript:" or "vbscript:" */ SCRIPT_URL_OK : "1024", /** Mask with all fields set to OK */ ALL_OK : "2047", /** Mask with both regular space and other whitespace OK */ ALL_WHITESPACE_OK : "3", /** <ul> <li>Deny all special characters. <li>Deny script URLs. </ul> */ ALL_ILLEGAL : "0", /** <ul> <li>Allow all special characters except Nul. ('\0'). <li>Allow script URLs. </ul> */ ALL_BUT_NUL_LEGAL : "1535", /** <ul> <li>Allow all special characters except for: <ul> <li>whitespace characters <li>Nul ('\0') </ul> <li>Allow script URLs. </ul> */ ALL_BUT_WHITESPACE_LEGAL : "1532", /** <ul> <li>Allow characters used by encoded URLs. <li>Deny script URLs. </ul> */ URL_LEGAL : "404", /** <ul> <li>Allow characters used by encoded URLs. <li>Allow spaces. <li>Deny script URLs. </ul> */ URL_AND_SPACE_LEGAL : "405", /** <ul> <li>Allow ampersand. <li>Deny script URLs. </ul> */ AMP_LEGAL : "128", /** <ul> <li>Allow ampersand. <li>Allow space. <li>Deny script URLs. </ul> */ AMP_AND_SPACE_LEGAL : "129", /** <ul> <li>Allow space. <li>Deny script URLs. </ul> */ SPACE_LEGAL : "1", /** <ul> <li>Allow all but. <ul> <li>Nul ('\0') <li>Angle brackets ('<', '>') </ul> <li>Deny script URLs. </ul> */ ALL_BUT_NUL_AND_ANGLE_BRACKETS_LEGAL : "1439", /**Sanitize a value. <ol> <li>If script URLs are not OK, the will be removed. <li>If neither spaces nor other white space is OK, then white space will be trimmed from the beginning and end of the URL. (Just the actual white space characters are trimmed, not other control codes.) <li> Illegal characters will be replaced with either ' ' or '_', depending on whether a space is itself a legal character. </ol> @param {String} value @return {String} the sanitized value */ sanitize : function( ) {}, };