Home Cooker Classes Others Rice CookerGX
Classes  >  encoder  >  HtmlEncode(string)
encoder class : HtmlEncode(string) method

Description

Converts a HTML-encode string.

Syntax

encoderInstance.HtmlEncode(string anyString)

Arguments

ClassNameDescription
stringencodedStringAny string.

Return value

ClassDescription
stringA HTML-encode string.

Sample code

//anyEncoder is an instance of the encoder type.

//anyString is an instance of the string type.

string encoded = anyEncoder.HtmlEncode(anyString);

Notes

It's a wrapper of the System.Web.HttpUtility.HtmlEncode(String).

Links for reference

Copyright © Rice All rights reserved.