C# Class JsonFx.BuildTools.HtmlDistiller.Filters.SafeHtmlFilter

HtmlFilter which allows only safe tags/attributes/styles
Inheritance: HyperlinkFilter
Datei anzeigen Open project: pocket-playlab/jsonfx-v1

Public Methods

Method Description
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

Method Details

FilterAttribute() public method

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
return bool

FilterStyle() public method

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
return bool

FilterTag() public method

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
return bool

SafeHtmlFilter() public method

Ctor
public SafeHtmlFilter ( ) : System
return System

SafeHtmlFilter() public method

Ctor
public SafeHtmlFilter ( bool autoLink ) : System
autoLink bool
return System

SafeHtmlFilter() public method

Ctor
public SafeHtmlFilter ( int maxWordLength ) : System
maxWordLength int
return System

SafeHtmlFilter() public method

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