Property | Type | Description | |
---|---|---|---|
_enabled | bool | ||
_tags | List |
Method | Description | |
---|---|---|
Sanitize ( string input ) : string |
Sanitize input HTML using default settings.
|
|
Sanitize ( TextReader input, |
||
Sanitizer ( ) : System | ||
TextToHtml ( string text ) : string |
Method | Description | |
---|---|---|
After ( |
||
Before ( |
||
CaseCData ( |
||
CaseElement ( |
||
CaseEndElement ( |
||
CaseText ( |
||
CheckStack ( ) : void | ||
FuzzyPopTag ( string item ) : bool |
Finds the specified tag somewhere in the stack and removes it from there.
|
|
IsValidAttribute ( string key, string value ) : bool | ||
PopTag ( ) : string | ||
Reset ( ) : void |
Reset internal state left from previous run.
|
|
Sanitize ( |
||
TopTag ( ) : string | ||
WriteCData ( |
||
WriteElement ( |
||
WriteEndElement ( |
||
WriteString ( |
Method | Description | |
---|---|---|
PushTag ( string item ) : void |
protected After ( |
||
result | ||
return | void |
protected Before ( |
||
result | ||
return | void |
protected CaseCData ( |
||
htmlReader | ||
result | ||
return | void |
protected CaseElement ( |
||
htmlReader | ||
result | ||
return | void |
protected CaseEndElement ( |
||
htmlReader | ||
result | ||
return | void |
protected CaseText ( |
||
htmlReader | ||
result | ||
return | void |
protected FuzzyPopTag ( string item ) : bool | ||
item | string | Item to remove. |
return | bool |
protected IsValidAttribute ( string key, string value ) : bool | ||
key | string | |
value | string | |
return | bool |
public static Sanitize ( string input ) : string | ||
input | string | Input HTML. May be |
return | string |
protected Sanitize ( |
||
htmlReader | ||
result | ||
return | void |
public Sanitize ( TextReader input, |
||
input | TextReader | |
result | ||
return | void |
public static TextToHtml ( string text ) : string | ||
text | string | |
return | string |
protected WriteCData ( |
||
result | ||
value | string | |
return | void |
protected WriteElement ( |
||
result | ||
name | string | |
attributes | ||
empty | bool | |
return | void |
protected WriteEndElement ( |
||
result | ||
name | string | |
return | void |
protected WriteString ( |
||
result | ||
value | string | |
return | void |