C# Class CsQuery.Output.HtmlEncoderMinimum

Minimum HTML encoder. This only parses the absolute minimum required for correct interpretation (less-than, greater-than, ampersand). Everthing else is passed through.
Inheritance: HtmlEncoderBase
显示文件 Open project: prepare/HTML-Renderer

Protected Methods

Method Description
TryEncode ( char c, string &encoded ) : bool

Determines of a character must be encoded; if so, encodes it as the output parameter and returns true; if not, returns false.

TryEncodeAstralPlane ( int c, string &encoded ) : bool

Overrides default astral plane encoding, causing unicode characters to never be HTML encoded.

Method Details

TryEncode() protected method

Determines of a character must be encoded; if so, encodes it as the output parameter and returns true; if not, returns false.
protected TryEncode ( char c, string &encoded ) : bool
c char /// The text string to encode. ///
encoded string /// [out] The encoded string. ///
return bool

TryEncodeAstralPlane() protected method

Overrides default astral plane encoding, causing unicode characters to never be HTML encoded.
protected TryEncodeAstralPlane ( int c, string &encoded ) : bool
c int /// The text string to encode. ///
encoded string /// [out] Null always (never encodes) ///
return bool