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

HtmlFilter which allows all tags/attributes/styles/URLs. Useful for cleansing potentially broken markup or just applying auto-linking and work-breaking.
Inheritance: HyperlinkFilter
Datei anzeigen Open project: pocket-playlab/jsonfx-v1

Public Methods

Method Description
FilterAttribute ( string tag, string attribute, string &value ) : bool

Allows all attributes

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

Allows all styles

FilterTag ( HtmlTag tag ) : bool

Allows all tags

UnsafeHtmlFilter ( ) : System

Ctor

UnsafeHtmlFilter ( bool autoLink ) : System

Ctor

UnsafeHtmlFilter ( int maxWordLength ) : System

Ctor

UnsafeHtmlFilter ( int maxWordLength, bool autoLink ) : System

Ctor

Protected Methods

Method Description
FilterUrl ( string source, int start, int end, string &replacement ) : bool

Allows all URLs.

Method Details

FilterAttribute() public method

Allows all attributes
public FilterAttribute ( string tag, string attribute, string &value ) : bool
tag string
attribute string
value string
return bool

FilterStyle() public method

Allows all styles
public FilterStyle ( string tag, string style, string &value ) : bool
tag string
style string
value string
return bool

FilterTag() public method

Allows all tags
public FilterTag ( HtmlTag tag ) : bool
tag HtmlTag
return bool

FilterUrl() protected method

Allows all URLs.
protected FilterUrl ( string source, int start, int end, string &replacement ) : bool
source string
start int
end int
replacement string the value to replace with
return bool

UnsafeHtmlFilter() public method

Ctor
public UnsafeHtmlFilter ( ) : System
return System

UnsafeHtmlFilter() public method

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

UnsafeHtmlFilter() public method

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

UnsafeHtmlFilter() public method

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