C# 클래스 Rock.Web.Utilities.HtmlSanitizer

Sanitation method from Rick Strahl's blog... http://weblog.west-wind.com/posts/2012/Jul/19/NET-HTML-Sanitation-for-rich-HTML-Input https://github.com/RickStrahl/HtmlSanitizer/blob/master/HtmlSanitizer/HtmlSanitizer/HtmlSanitizer.cs
파일 보기 프로젝트 열기: NewSpring/Rock 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BlackList HashSet

공개 메소드들

메소드 설명
Sanitize ( string html ) : string

Cleans up an HTML string by removing elements on the blacklist and all elements that start with onXXX .

SanitizeHtml ( string html ) : string

Cleans up an HTML string and removes HTML tags in blacklist

비공개 메소드들

메소드 설명
HasExpressionLinks ( string value ) : bool
HasScriptLinks ( string value ) : bool
SanitizeHtmlNode ( HtmlNode node ) : void

메소드 상세

Sanitize() 공개 메소드

Cleans up an HTML string by removing elements on the blacklist and all elements that start with onXXX .
public Sanitize ( string html ) : string
html string
리턴 string

SanitizeHtml() 공개 정적인 메소드

Cleans up an HTML string and removes HTML tags in blacklist
public static SanitizeHtml ( string html ) : string
html string The HTML.
리턴 string

프로퍼티 상세

BlackList 공개적으로 프로퍼티

The black list
public HashSet BlackList
리턴 HashSet