C# Class AjaxControlToolkit.HtmlEditor.Sanitizer.DefaultHtmlSanitizer

Inheritance: IHtmlSanitizer
ファイルを表示 Open project: DevExpress/AjaxControlToolkit Class Usage Examples

Public Methods

Method Description
GetSafeHtmlFragment ( string htmlText, string[]>.Dictionary tagsWhiteList ) : string

Private Methods

Method Description
CleanAttributeValue ( IHtmlAttribute attribute ) : void
CleanAttributes ( IEnumerable attributes, ICollection allowedAttributes ) : void
CleanNodes ( IEnumerable nodes, string[]>.IDictionary whiteList ) : void
EncodeCharacterToHtmlEntityEscape ( char c ) : string
Sanitize ( IHtmlNode rootNode, string[]>.IDictionary whiteList ) : void

Method Details

GetSafeHtmlFragment() public method

public GetSafeHtmlFragment ( string htmlText, string[]>.Dictionary tagsWhiteList ) : string
htmlText string
tagsWhiteList string[]>.Dictionary
return string