HtmlEncode()

HttpUtility::HtmlEncode(const String&) method

Encodes Html fragment.

static String System::Web::HttpUtility::HtmlEncode(const String &str)

Arguments

ParameterTypeDescription
strconst String&Html fragment to encode.

Return Value

Encoded Html fragment.

HttpUtility::HtmlEncode(const SharedPtr<Object>&) method

Encodes Html fragment.

static String System::Web::HttpUtility::HtmlEncode(const SharedPtr<Object> &value)

Arguments

ParameterTypeDescription
valueconst SharedPtr<Object>&Html fragment to encode.

Return Value

Encoded Html fragment.

HttpUtility::HtmlEncode(const String&, const SharedPtr<IO::TextWriter>&) method

Encodes Html fragment.

static void System::Web::HttpUtility::HtmlEncode(const String &str, const SharedPtr<IO::TextWriter> &output)

Arguments

ParameterTypeDescription
strconst String&Html fragment to encode.
outputconst SharedPtr<IO::TextWriter>&A TextWriter object for output.

See Also