C# Class NSoft.NFramework.Web.Tools.AntiXssTool

Mostrar archivo Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
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 문법에 맞는 문자열로 인코딩한다.

Method Details

HtmlAttributeEncode() public static method

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

HtmlAttributeEncode() public static method

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

HtmlEncode() public static method

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

HtmlEncode() public static method

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

JavaScriptEncode() public static method

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

JavaScriptEncode() public static method

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

UrlEncode() public static method

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

UrlEncode() public static method

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

VBScriptEncode() public static method

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

VBScriptEncode() public static method

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

XmlAttributeEncode() public static method

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

XmlAttributeEncode() public static method

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

XmlEncode() public static method

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

XmlEncode() public static method

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