Свойство | Type | Description | |
---|---|---|---|
AutoClosedTags | HashSet |
||
EmptyTags | HashSet |
||
EventAttributes | HashSet |
||
ExcludeTags | HashSet |
||
IgnoreTags | HashSet |
||
IncludeTags | HashSet |
||
RewriteTags | string>.IDictionary | ||
UntouchableAttributes | HashSet |
||
_enabled | bool | ||
_tags | List |
Méthode | Description | |
---|---|---|
ClearMarkdownTag ( string input ) : string | ||
FormatComment ( string text ) : string | ||
IsMarkdown ( string input ) : bool | ||
Process ( string input ) : string | ||
Sanitize ( string input ) : string |
Sanitize input HTML using default settings.
|
|
Sanitize ( |
||
Sanitizer ( ) : System | ||
TextToHtml ( string text ) : string |
Htmlize text, that is replace new line with <br/>, etc. This method will try to sniff whether the original text is already a html document. |
Méthode | Description | |
---|---|---|
AfterDocument ( |
||
BeforeDocument ( |
||
CaseCData ( |
||
CaseElement ( |
||
CaseEndElement ( |
||
CaseText ( |
||
CheckStack ( ) : void | ||
FuzzyPopTag ( string item ) : bool |
Finds the specified tag somewhere in the stack and removes it from there.
|
|
HtmlAttributeEncode ( string value, |
||
HtmlEncode ( string value, |
||
IsValidAttribute ( string name, string key, string value ) : bool | ||
PopTag ( ) : string | ||
Reset ( ) : void |
Reset internal state left from previous run.
|
|
RewriteTag ( string tagName ) : string |
Checks for rewrite and rewrites tag if necessary
|
|
Sanitize ( |
||
WriteCData ( |
||
WriteElement ( |
||
WriteEndElement ( |
||
WriteText ( |
Méthode | Description | |
---|---|---|
PushTag ( string item ) : void |
protected AfterDocument ( |
||
result | ||
Résultat | void |
protected BeforeDocument ( |
||
result | ||
Résultat | void |
protected CaseCData ( |
||
htmlReader | ||
result | ||
Résultat | void |
protected CaseElement ( |
||
htmlReader | ||
result | ||
Résultat | void |
protected CaseEndElement ( |
||
htmlReader | ||
result | ||
Résultat | void |
protected CaseText ( |
||
htmlReader | ||
result | ||
Résultat | void |
public static ClearMarkdownTag ( string input ) : string | ||
input | string | |
Résultat | string |
public static FormatComment ( string text ) : string | ||
text | string | |
Résultat | string |
protected FuzzyPopTag ( string item ) : bool | ||
item | string | Item to remove. |
Résultat | bool |
protected HtmlAttributeEncode ( string value, |
||
value | string | |
writer | ||
Résultat | void |
protected HtmlEncode ( string value, |
||
value | string | |
writer | ||
Résultat | void |
public static IsMarkdown ( string input ) : bool | ||
input | string | |
Résultat | bool |
protected IsValidAttribute ( string name, string key, string value ) : bool | ||
name | string | |
key | string | |
value | string | |
Résultat | bool |
protected RewriteTag ( string tagName ) : string | ||
tagName | string | |
Résultat | string |
public static Sanitize ( string input ) : string | ||
input | string | Input HTML. May be |
Résultat | string |
protected Sanitize ( |
||
htmlReader | ||
result | ||
Résultat | void |
public Sanitize ( |
||
input | ||
result | ||
Résultat | void |
public static TextToHtml ( string text ) : string | ||
text | string | Original text, may be null . |
Résultat | string |
protected WriteCData ( |
||
result | ||
value | string | |
Résultat | void |
protected WriteElement ( |
||
result | ||
name | string | |
attributes | string>.Dictionary | |
empty | bool | |
Résultat | void |
protected WriteEndElement ( |
||
result | ||
name | string | |
Résultat | void |
protected WriteText ( |
||
result | ||
value | string | |
Résultat | void |
protected HashSet |
||
Résultat | HashSet |