C# 클래스 Utilities.Web.HTMLExtensions

파일 보기 프로젝트 열기: JaCraig/Craig-s-Utility-Library

공개 메소드들

메소드 설명
AbsoluteRoot ( this Context ) : Uri

Returns the absolute root

AddScriptFile ( this Page, FileInfo File ) : void

Adds a script file to the header of the current page

ContainsHTML ( this Input ) : bool

Decides if the string contains HTML

HTTPCompress ( this Context, bool RemovePrettyPrinting = false, MinificationType Type = MinificationType.HTML ) : void

Adds HTTP compression to the current context

IsEncodingAccepted ( this Context, string Encoding ) : bool

Checks the request headers to see if the specified encoding is accepted by the client.

RemoveURLIllegalCharacters ( this Input ) : string

Removes illegal characters (used in uri's, etc.)

SetEncoding ( this Context, string Encoding ) : void

Adds the specified encoding to the response headers.

StripHTML ( this HTML ) : string

Removes HTML elements from a string

URLDecode ( this Input ) : string

URL decodes a string

URLEncode ( this Input ) : string

URL encodes a string

비공개 메소드들

메소드 설명
RelativeRoot ( this Context ) : string
RemoveDiacritics ( string Input ) : string

Removes special characters (Diacritics) from the string

RemoveExtraHyphen ( string Input ) : string

Removes extra hyphens from a string

메소드 상세

AbsoluteRoot() 공개 정적인 메소드

Returns the absolute root
public static AbsoluteRoot ( this Context ) : Uri
Context this
리턴 System.Uri

AddScriptFile() 공개 정적인 메소드

Adds a script file to the header of the current page
public static AddScriptFile ( this Page, FileInfo File ) : void
Page this Page to add it to
File FileInfo Script file
리턴 void

ContainsHTML() 공개 정적인 메소드

Decides if the string contains HTML
public static ContainsHTML ( this Input ) : bool
Input this Input string to check
리턴 bool

HTTPCompress() 공개 정적인 메소드

Adds HTTP compression to the current context
public static HTTPCompress ( this Context, bool RemovePrettyPrinting = false, MinificationType Type = MinificationType.HTML ) : void
Context this Current context
RemovePrettyPrinting bool /// Sets the response filter to a special stream that removes pretty printing from content ///
Type MinificationType /// The minification type to use (defaults to HTML if RemovePrettyPrinting is set to true, /// but can also deal with CSS and Javascript) ///
리턴 void

IsEncodingAccepted() 공개 정적인 메소드

Checks the request headers to see if the specified encoding is accepted by the client.
public static IsEncodingAccepted ( this Context, string Encoding ) : bool
Context this
Encoding string
리턴 bool

RemoveURLIllegalCharacters() 공개 정적인 메소드

Removes illegal characters (used in uri's, etc.)
public static RemoveURLIllegalCharacters ( this Input ) : string
Input this string to be converted
리턴 string

SetEncoding() 공개 정적인 메소드

Adds the specified encoding to the response headers.
public static SetEncoding ( this Context, string Encoding ) : void
Context this Context to set the encoding on
Encoding string Encoding to set
리턴 void

StripHTML() 공개 정적인 메소드

Removes HTML elements from a string
public static StripHTML ( this HTML ) : string
HTML this HTML laiden string
리턴 string

URLDecode() 공개 정적인 메소드

URL decodes a string
public static URLDecode ( this Input ) : string
Input this Input to decode
리턴 string

URLEncode() 공개 정적인 메소드

URL encodes a string
public static URLEncode ( this Input ) : string
Input this Input to encode
리턴 string