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

HtmlFilter which allows only safe tags/attributes/styles
Inheritance: HyperlinkFilter
Afficher le fichier Open project: pocket-playlab/jsonfx-v1

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

FilterStyle() public méthode

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
Résultat bool

FilterTag() public méthode

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
Résultat bool

SafeHtmlFilter() public méthode

Ctor
public SafeHtmlFilter ( ) : System
Résultat System

SafeHtmlFilter() public méthode

Ctor
public SafeHtmlFilter ( bool autoLink ) : System
autoLink bool
Résultat System

SafeHtmlFilter() public méthode

Ctor
public SafeHtmlFilter ( int maxWordLength ) : System
maxWordLength int
Résultat System

SafeHtmlFilter() public méthode

Ctor
public SafeHtmlFilter ( int maxWordLength, bool autoLink ) : System
maxWordLength int
autoLink bool
Résultat System