C# Class Tp.Web.Extensions.Components.Encoder

Datei anzeigen Open project: TargetProcess/Tp.HelpDesk

Public Methods

Method Description
HtmlAttributeEncode ( string input ) : string
HtmlAttributeEncode ( TextReader input, TextWriter output ) : void
HtmlAttributeEncode ( string input, TextWriter output ) : void
HtmlEncode ( string input ) : string

Encodes the specified input string for use in HTML.

This method is null safe.

HtmlEncode ( TextReader input, TextWriter output ) : void

Reads text from the specified input and writes encoded text for use in HTML to the specified output.

HtmlEncode ( string input, TextWriter output ) : void

Encodes the specified input and writes encoded text for use in HTML to the specified output.

Private Methods

Method Description
HtmlAttributeEncode ( int ch, TextWriter output ) : void
HtmlEncode ( int ch, TextWriter output ) : void

Method Details

HtmlAttributeEncode() public static method

public static HtmlAttributeEncode ( string input ) : string
input string
return string

HtmlAttributeEncode() public static method

public static HtmlAttributeEncode ( TextReader input, TextWriter output ) : void
input TextReader
output System.IO.TextWriter
return void

HtmlAttributeEncode() public static method

public static HtmlAttributeEncode ( string input, TextWriter output ) : void
input string
output System.IO.TextWriter
return void

HtmlEncode() public static method

Encodes the specified input string for use in HTML.
This method is null safe.
public static HtmlEncode ( string input ) : string
input string /// The string to encode, may be null. ///
return string

HtmlEncode() public static method

Reads text from the specified input and writes encoded text for use in HTML to the specified output.
/// If is null. /// /// If is null. ///
public static HtmlEncode ( TextReader input, TextWriter output ) : void
input TextReader /// Input stream containing text to encode. ///
output System.IO.TextWriter /// Output stream where to write encoded text. ///
return void

HtmlEncode() public static method

Encodes the specified input and writes encoded text for use in HTML to the specified output.
/// If is null. ///
public static HtmlEncode ( string input, TextWriter output ) : void
input string /// The text to encode, may be null. ///
output System.IO.TextWriter /// Output stream where to write encoded text. ///
return void