UrlQuerySanitizer.IllegalCharacterValueSanitizer.Sanitize(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sanitize a value.
[Android.Runtime.Register("sanitize", "(Ljava/lang/String;)Ljava/lang/String;", "GetSanitize_Ljava_lang_String_Handler")]
public virtual string? Sanitize (string? value);
[<Android.Runtime.Register("sanitize", "(Ljava/lang/String;)Ljava/lang/String;", "GetSanitize_Ljava_lang_String_Handler")>]
abstract member Sanitize : string -> string
override this.Sanitize : string -> string
Parameters
- value
- String
value
Returns
the sanitized value
Implements
- Attributes
Remarks
Sanitize a value. <ol> <li>If script URLs are not OK, they 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>
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.