C# 클래스 NSoft.NFramework.Web.Tools.AntiXssTool

파일 보기 프로젝트 열기: debop/NFramework 1 사용 예제들

공개 메소드들

메소드 설명
HtmlAttributeEncode ( this value ) : string

HTML Element의 Attribute 값을 안전한 값으로 인코딩한다.

HtmlAttributeEncode ( this value, string defaultValue = "" ) : string

HTML Element의 Attribute 값을 안전한 값으로 인코딩한다.

HtmlEncode ( this value ) : string

HTML 문서상의 TEXT로 안정된 문자열로 변환한다.

HtmlEncode ( this value, string defaultValue = "" ) : string

HTML 문서상의 TEXT로 안정된 문자열로 변환한다.

JavaScriptEncode ( this value, bool flagForQuote = true ) : string

javascript 문을 동적으로 생성할 때 script 코드 내용을 javascript 문법에 맞게끔 인코딩한다.

JavaScriptEncode ( this value, string defaultValue = "" ) : string

javascript 문을 동적으로 생성할 때 script 코드 내용을 javascript 문법에 맞게끔 인코딩한다.

UrlEncode ( this value ) : string

URL 주소를 Encoding 한다.

UrlEncode ( this value, string defaultValue = "" ) : string

URL 주소를 Encoding 한다.

VBScriptEncode ( this value ) : string

Visual Basic Script 문을 동적으로 생성시, script 코드 내용을 vb script 문법에 맞게끔 인코딩한다.

VBScriptEncode ( this value, string defaultValue = "" ) : string

Visual Basic Script 문을 동적으로 생성시, script 코드 내용을 vb script 문법에 맞게끔 인코딩한다.

XmlAttributeEncode ( this value ) : string

XML Attribute Node에 들어갈 문자열을 XML 형식에 맞게끔 인코딩한다.

XmlAttributeEncode ( this value, string defaultValue = "" ) : string

XML Attribute Node에 들어갈 문자열을 XML 형식에 맞게끔 인코딩한다.

XmlEncode ( this value ) : string

XML 문법에 맞는 문자열로 인코딩한다.

XmlEncode ( this value, string defaultValue = "" ) : string

XML 문법에 맞는 문자열로 인코딩한다.

메소드 상세

HtmlAttributeEncode() 공개 정적인 메소드

HTML Element의 Attribute 값을 안전한 값으로 인코딩한다.
public static HtmlAttributeEncode ( this value ) : string
value this 일반 문자열
리턴 string

HtmlAttributeEncode() 공개 정적인 메소드

HTML Element의 Attribute 값을 안전한 값으로 인코딩한다.
public static HtmlAttributeEncode ( this value, string defaultValue = "" ) : string
value this Attribute에 지정될 값
defaultValue string 지정될 값이 null이거나 빈 문자열일때 대체할 문자열
리턴 string

HtmlEncode() 공개 정적인 메소드

HTML 문서상의 TEXT로 안정된 문자열로 변환한다.
public static HtmlEncode ( this value ) : string
value this 입력 문자열
리턴 string

HtmlEncode() 공개 정적인 메소드

HTML 문서상의 TEXT로 안정된 문자열로 변환한다.
public static HtmlEncode ( this value, string defaultValue = "" ) : string
value this 입력 값
defaultValue string 입력 값이 null 이거나 빈 문자열일 경우 대체할 기본 값
리턴 string

JavaScriptEncode() 공개 정적인 메소드

javascript 문을 동적으로 생성할 때 script 코드 내용을 javascript 문법에 맞게끔 인코딩한다.
public static JavaScriptEncode ( this value, bool flagForQuote = true ) : string
value this 인코딩할 문자열
flagForQuote bool 인용문구를 씌울 것인가?
리턴 string

JavaScriptEncode() 공개 정적인 메소드

javascript 문을 동적으로 생성할 때 script 코드 내용을 javascript 문법에 맞게끔 인코딩한다.
public static JavaScriptEncode ( this value, string defaultValue = "" ) : string
value this 인코딩할 문자열
defaultValue string 대상값이 null이거나 빈문자열인 경우, 대체할 기본값
리턴 string

UrlEncode() 공개 정적인 메소드

URL 주소를 Encoding 한다.
public static UrlEncode ( this value ) : string
value this
리턴 string

UrlEncode() 공개 정적인 메소드

URL 주소를 Encoding 한다.
public static UrlEncode ( this value, string defaultValue = "" ) : string
value this
defaultValue string
리턴 string

VBScriptEncode() 공개 정적인 메소드

Visual Basic Script 문을 동적으로 생성시, script 코드 내용을 vb script 문법에 맞게끔 인코딩한다.
public static VBScriptEncode ( this value ) : string
value this 대상 문자열
리턴 string

VBScriptEncode() 공개 정적인 메소드

Visual Basic Script 문을 동적으로 생성시, script 코드 내용을 vb script 문법에 맞게끔 인코딩한다.
public static VBScriptEncode ( this value, string defaultValue = "" ) : string
value this 대상 문자열
defaultValue string 대상 문자열이 null이거나 빈 문자열인 경우, 대체할 기본값
리턴 string

XmlAttributeEncode() 공개 정적인 메소드

XML Attribute Node에 들어갈 문자열을 XML 형식에 맞게끔 인코딩한다.
public static XmlAttributeEncode ( this value ) : string
value this 원본 문자열
리턴 string

XmlAttributeEncode() 공개 정적인 메소드

XML Attribute Node에 들어갈 문자열을 XML 형식에 맞게끔 인코딩한다.
public static XmlAttributeEncode ( this value, string defaultValue = "" ) : string
value this 원본 문자열
defaultValue string 원본이 null이거나 빈문자열일 경우, 대체할 기본값
리턴 string

XmlEncode() 공개 정적인 메소드

XML 문법에 맞는 문자열로 인코딩한다.
public static XmlEncode ( this value ) : string
value this 원본 문자열
리턴 string

XmlEncode() 공개 정적인 메소드

XML 문법에 맞는 문자열로 인코딩한다.
public static XmlEncode ( this value, string defaultValue = "" ) : string
value this 원본 문자열
defaultValue string 원본이 null이거나 빈 문자열이면, 대체할 값
리턴 string