Language

Html.EscapeHtml Method

Definition

Overloads

Name Description
EscapeHtml(ICharSequence)

Returns an HTML escaped representation of the given plain text.

EscapeHtml(String)

Returns an HTML escaped representation of the given plain text.

EscapeHtml(ICharSequence)

Returns an HTML escaped representation of the given plain text.

[Android.Runtime.Register("escapeHtml", "(Ljava/lang/CharSequence;)Ljava/lang/String;", "")]
public static string? EscapeHtml(Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("escapeHtml", "(Ljava/lang/CharSequence;)Ljava/lang/String;", "")>]
static member EscapeHtml : Java.Lang.ICharSequence -> string

Parameters

text
ICharSequence

The plain text to escape for HTML text content.

Returns

The text escaped for use as HTML text content.

Attributes

Remarks

Returns an HTML escaped representation of the given plain text.

Java documentation for android.text.Html.escapeHtml(java.lang.CharSequence).

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

EscapeHtml(String)

Returns an HTML escaped representation of the given plain text.

public static string? EscapeHtml(string? text);
static member EscapeHtml : string -> string

Parameters

text
String

The plain string to escape for HTML text content.

Returns

The string escaped for use as HTML text content.

Remarks

Returns an HTML escaped representation of the given plain text.

Java documentation for android.text.Html.escapeHtml(java.lang.CharSequence).

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