C# Class HtmlKit.HtmlEntityDecoder

An HTML entity decoder.
An HTML entity decoder.
Mostra file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
GetValue ( ) : string

Get the decoded entity value.

Gets the decoded entity value.

HtmlEntityDecoder ( ) : System

Initializes a new instance of the HtmlKit.HtmlEntityDecoder class.

Creates a new HtmlEntityDecoder.

Push ( char c ) : bool

Push the specified character into the HTML entity decoder.

Pushes the specified character into the HTML entity decoder.

The first character pushed MUST be the '&' character.

Reset ( ) : void

Reset the entity decoder.

Resets the entity decoder.

Private Methods

Method Description
GetNumericEntityValue ( ) : string
GetPushedInput ( ) : string
PushNumericEntity ( char c ) : bool

Method Details

GetValue() public method

Get the decoded entity value.
Gets the decoded entity value.
public GetValue ( ) : string
return string

HtmlEntityDecoder() public method

Initializes a new instance of the HtmlKit.HtmlEntityDecoder class.
Creates a new HtmlEntityDecoder.
public HtmlEntityDecoder ( ) : System
return System

Push() public method

Push the specified character into the HTML entity decoder.

Pushes the specified character into the HTML entity decoder.

The first character pushed MUST be the '&' character.

/// is the first character being pushed and was not the '&' character. ///
public Push ( char c ) : bool
c char The character.
return bool

Reset() public method

Reset the entity decoder.
Resets the entity decoder.
public Reset ( ) : void
return void