C# 클래스 SenseNet.Portal.HtmlSanitizer

파일 보기 프로젝트 열기: maxpavlov/FlexNet

공개 프로퍼티들

프로퍼티 타입 설명
allowedTags System.Text.RegularExpressions.Regex
forbiddenStylePattern System.Text.RegularExpressions.Regex
forbiddenTags System.Text.RegularExpressions.Regex

공개 메소드들

메소드 설명
convertLineFeedToBR ( String text ) : String
encode ( String s ) : String
getText ( String html ) : String
htmlEncodeApexes ( String source ) : String
htmlEncodeApexesAndTags ( String source ) : String
htmlEncodeTag ( String source ) : String
isSanitized ( String html ) : bool
removeLineFeed ( String text ) : String
replaceAllNoRegex ( String source, String searches, String replaces ) : String
sanitize ( String html ) : String
sanitizer ( String html ) : SanitizeResult
sanitizer ( String html, Regex allowedTags, Regex forbiddenTags ) : SanitizeResult

비공개 메소드들

메소드 설명
moveToMarkerEnd ( int pos, String marker, String s ) : int
tokenize ( String html ) : List

메소드 상세

convertLineFeedToBR() 공개 정적인 메소드

public static convertLineFeedToBR ( String text ) : String
text String
리턴 String

encode() 공개 정적인 메소드

public static encode ( String s ) : String
s String
리턴 String

getText() 공개 정적인 메소드

public static getText ( String html ) : String
html String
리턴 String

htmlEncodeApexes() 공개 정적인 메소드

public static htmlEncodeApexes ( String source ) : String
source String
리턴 String

htmlEncodeApexesAndTags() 공개 정적인 메소드

public static htmlEncodeApexesAndTags ( String source ) : String
source String
리턴 String

htmlEncodeTag() 공개 정적인 메소드

public static htmlEncodeTag ( String source ) : String
source String
리턴 String

isSanitized() 공개 정적인 메소드

public static isSanitized ( String html ) : bool
html String
리턴 bool

removeLineFeed() 공개 정적인 메소드

public static removeLineFeed ( String text ) : String
text String
리턴 String

replaceAllNoRegex() 공개 정적인 메소드

public static replaceAllNoRegex ( String source, String searches, String replaces ) : String
source String
searches String
replaces String
리턴 String

sanitize() 공개 정적인 메소드

public static sanitize ( String html ) : String
html String
리턴 String

sanitizer() 공개 정적인 메소드

public static sanitizer ( String html ) : SanitizeResult
html String
리턴 SanitizeResult

sanitizer() 공개 정적인 메소드

public static sanitizer ( String html, Regex allowedTags, Regex forbiddenTags ) : SanitizeResult
html String
allowedTags System.Text.RegularExpressions.Regex
forbiddenTags System.Text.RegularExpressions.Regex
리턴 SanitizeResult

프로퍼티 상세

allowedTags 공개적으로 정적으로 프로퍼티

public static Regex,System.Text.RegularExpressions allowedTags
리턴 System.Text.RegularExpressions.Regex

forbiddenStylePattern 공개적으로 정적으로 프로퍼티

public static Regex,System.Text.RegularExpressions forbiddenStylePattern
리턴 System.Text.RegularExpressions.Regex

forbiddenTags 공개적으로 정적으로 프로퍼티

public static Regex,System.Text.RegularExpressions forbiddenTags
리턴 System.Text.RegularExpressions.Regex