C# 클래스 JsonFx.BuildTools.HtmlDistiller.Filters.SafeHtmlFilter

HtmlFilter which allows only safe tags/attributes/styles
상속: HyperlinkFilter
파일 보기 프로젝트 열기: pocket-playlab/jsonfx-v1

공개 메소드들

메소드 설명
FilterAttribute ( string tag, string attribute, string &value ) : bool

Allows a permissive set of safe attributes

http://www.w3.org/TR/html401/index/attributes.html

FilterStyle ( string tag, string style, string &value ) : bool

Allows a permissive set of safe attributes

http://www.w3.org/TR/CSS21/propidx.html

FilterTag ( HtmlTag tag ) : bool

Allows a permissive set of safe tags

http://www.w3.org/TR/html401/index/elements.html http://webdesign.about.com/od/htmltags/a/bl_index.htm

SafeHtmlFilter ( ) : System

Ctor

SafeHtmlFilter ( bool autoLink ) : System

Ctor

SafeHtmlFilter ( int maxWordLength ) : System

Ctor

SafeHtmlFilter ( int maxWordLength, bool autoLink ) : System

Ctor

메소드 상세

FilterAttribute() 공개 메소드

Allows a permissive set of safe attributes
http://www.w3.org/TR/html401/index/attributes.html
public FilterAttribute ( string tag, string attribute, string &value ) : bool
tag string tag name
attribute string attribute name
value string attribute value
리턴 bool

FilterStyle() 공개 메소드

Allows a permissive set of safe attributes
http://www.w3.org/TR/CSS21/propidx.html
public FilterStyle ( string tag, string style, string &value ) : bool
tag string tag name
style string style name
value string style value
리턴 bool

FilterTag() 공개 메소드

Allows a permissive set of safe tags
http://www.w3.org/TR/html401/index/elements.html http://webdesign.about.com/od/htmltags/a/bl_index.htm
public FilterTag ( HtmlTag tag ) : bool
tag HtmlTag tag name
리턴 bool

SafeHtmlFilter() 공개 메소드

Ctor
public SafeHtmlFilter ( ) : System
리턴 System

SafeHtmlFilter() 공개 메소드

Ctor
public SafeHtmlFilter ( bool autoLink ) : System
autoLink bool
리턴 System

SafeHtmlFilter() 공개 메소드

Ctor
public SafeHtmlFilter ( int maxWordLength ) : System
maxWordLength int
리턴 System

SafeHtmlFilter() 공개 메소드

Ctor
public SafeHtmlFilter ( int maxWordLength, bool autoLink ) : System
maxWordLength int
autoLink bool
리턴 System