C# Class Tp.Utils.Html.CommentHtmlProcessor

Inheritance: Sanitizer
Show file Open project: TargetProcess/Target-Process-Plugins

Public Properties

Property Type Description
HtmlMentionRegex System.Text.RegularExpressions.Regex
MarkdownMentionRegex System.Text.RegularExpressions.Regex

Protected Properties

Property Type Description
KeepAttributeElements Iesi.Collections.Generic.ISet
KeepElements Iesi.Collections.Generic.ISet

Public Methods

Method Description
CommentHtmlProcessor ( ) : System.Collections.Generic
CommentHtmlProcessor ( bool requiredHtmlEncode ) : System.Collections.Generic
GetMentions ( string input ) : IEnumerable

Protected Methods

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

Private Methods

Method Description
RewritePreText ( string preText ) : string

Method Details

CommentHtmlProcessor() public method

public CommentHtmlProcessor ( ) : System.Collections.Generic
return System.Collections.Generic

CommentHtmlProcessor() public method

public CommentHtmlProcessor ( bool requiredHtmlEncode ) : System.Collections.Generic
requiredHtmlEncode bool
return System.Collections.Generic

GetMentions() public method

public GetMentions ( string input ) : IEnumerable
input string
return IEnumerable

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

IsValidAttribute() protected method

protected IsValidAttribute ( string name, string key, string value ) : bool
name string
key string
value string
return bool

WriteCData() protected method

protected WriteCData ( TextWriter result, string value ) : void
result System.IO.TextWriter
value string
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

WriteEndElement() protected method

protected WriteEndElement ( TextWriter result, string name ) : void
result System.IO.TextWriter
name string
return void

WriteText() protected method

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

Property Details

HtmlMentionRegex public static property

public static Regex,System.Text.RegularExpressions HtmlMentionRegex
return System.Text.RegularExpressions.Regex

KeepAttributeElements protected property

protected ISet,Iesi.Collections.Generic KeepAttributeElements
return Iesi.Collections.Generic.ISet

KeepElements protected property

protected ISet,Iesi.Collections.Generic KeepElements
return Iesi.Collections.Generic.ISet

MarkdownMentionRegex public static property

public static Regex,System.Text.RegularExpressions MarkdownMentionRegex
return System.Text.RegularExpressions.Regex