Share via


UrlQuerySanitizer.IllegalCharacterValueSanitizer.Sanitize(String) Method

Definition

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>

Java documentation for android.net.UrlQuerySanitizer.IllegalCharacterValueSanitizer.sanitize(java.lang.String).

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.

Applies to