C# 클래스 CsQuery.Output.HtmlEncoderBasic

Standard HTML encoder. This parses less-than, greater-than, ampersand, double-qoute, and non- breaking space into HTML entities, plus all characters above ascii 160 into ther HTML numeric- coded equivalent.
상속: HtmlEncoderBase
파일 보기 프로젝트 열기: prepare/HTML-Renderer

보호된 메소드들

메소드 설명
EncodeNumeric ( int value ) : string

Encodes an integer as an HTML numeric coded entity e.g. &#nnn;

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

Determines of a character must be encoded (for unicode chars using astral planes); if so, encodes it as the output parameter and returns true; if not, returns false. This method will be passed the integral representation of the mult-byte unicode character. If the method returns false, then the character will be output as the orginal two-byte sequence.

메소드 상세

EncodeNumeric() 보호된 메소드

Encodes an integer as an HTML numeric coded entity e.g. &#nnn;
protected EncodeNumeric ( int value ) : string
value int /// The value. ///
리턴 string

TryEncode() 보호된 메소드

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. ///
리턴 bool

TryEncodeAstralPlane() 보호된 메소드

Determines of a character must be encoded (for unicode chars using astral planes); if so, encodes it as the output parameter and returns true; if not, returns false. This method will be passed the integral representation of the mult-byte unicode character. If the method returns false, then the character will be output as the orginal two-byte sequence.
protected TryEncodeAstralPlane ( int c, string &encoded ) : bool
c int /// The text string to encode. ///
encoded string /// [out] The encoded string. ///
리턴 bool