C# Class Tp.Utils.Html.AttributeScavenger

Inheritance: Sanitizer
显示文件 Open project: TargetProcess/Target-Process-Plugins

Public Methods

Method Description
AttributeScavenger ( ) : System
AttributeScavenger ( bool requiredHtmlEncode ) : System

Protected Methods

Method Description
HtmlAttributeEncode ( string value, TextWriter writer ) : void
HtmlEncode ( string value, TextWriter writer ) : void
WriteElement ( TextWriter result, string name, string>.Dictionary attributes, bool empty ) : void
WriteText ( TextWriter result, string value ) : void

Private Methods

Method Description
RewritePreText ( string preText ) : string

Method Details

AttributeScavenger() public method

public AttributeScavenger ( ) : System
return System

AttributeScavenger() public method

public AttributeScavenger ( bool requiredHtmlEncode ) : System
requiredHtmlEncode bool
return System

HtmlAttributeEncode() protected method

protected HtmlAttributeEncode ( string value, TextWriter writer ) : void
value string
writer System.IO.TextWriter
return void

HtmlEncode() protected method

protected HtmlEncode ( string value, TextWriter writer ) : void
value string
writer System.IO.TextWriter
return void

WriteElement() protected method

protected WriteElement ( TextWriter result, string name, string>.Dictionary attributes, bool empty ) : void
result System.IO.TextWriter
name string
attributes string>.Dictionary
empty bool
return void

WriteText() protected method

protected WriteText ( TextWriter result, string value ) : void
result System.IO.TextWriter
value string
return void