EAPEncode Class |
Namespace: NetQuarry
The EAPEncode type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | DecodeBase64 |
Decode the base 64 string to its original unencoded string.
|
![]() ![]() | DecodeFromUrl |
Decode a string obtained from a URL. Safe to call in web and client-server.
|
![]() ![]() | DecodeUriComponent |
Decode a URI component.
|
![]() ![]() | DecodeUriXSSComponent |
Decode a URI component that was encoded using EncodeUriXSSComponent(String).
|
![]() ![]() | EncodeBase28 |
Encodes the specified integer as a base-28 string. The base-28 character set
constists of the characters "23456789BCDFGHJKMNPQRSTVWXYZ" (in index order).
The character excludes vowels to help avoid offensive words in the encoding,
and omits the characters 0, 1, L, and I to avoid confusion between digits and
look-alike alphabetic characters.
|
![]() ![]() | EncodeBase64 |
Encode the specified string using a base 64 encoding.
|
![]() ![]() | EncodeSpaces |
If the string contains consecutive spaces, encode all spaces as 0x00A0, the Unicode
non-breaking space. This is necessary where double spaces need to be maintained such
as in SELECT OPTION elements used for filtering.
|
![]() ![]() | EncodeUriComponent |
Encode a URI component.
|
![]() ![]() | EncodeUriXSSComponent |
Encode a URI component such that it will never trigger IE8 XSS Filter neutering.
|
![]() ![]() | ForAttr |
Escapes the provided string for use as the value of an attribute in an HTML tag.
|
![]() ![]() | ForHtml |
Encode a string for use in HTML. Safe to call in web and client-server.
|
![]() ![]() | ForMailto |
Encode a string for use in a mailto protocol. Safe to call in web and client-server.
|
![]() ![]() | ForUrl |
Encode a string for use in a URL. Safe to call in web and client-server.
|
![]() ![]() | ForXml |
Escapes the provided string for use in XML. The following characters are escaped:
greater-than, less-than, double-quote, apostrophe, and ampersand.
|
![]() ![]() | GZipCompress(Byte) |
Compress a block of data using the .Net GZip implementation.
|
![]() ![]() | GZipCompress(String) |
Compresses a base-64 string and returns the compressed version.
|
![]() ![]() | GZipDecompress(Byte) |
Decompress a block of data using the .Net GZip implementation.
|
![]() ![]() | GZipDecompress(String) |
Decompress a base64 encoded string using the .Net GZip implementation.
|
![]() ![]() | HtmlLineBreaks |
Replace any C# line breaks with HTML line breaks.
|
![]() ![]() | IsValidBase64 |
Determines whether the provided string a valid base64 string.
Note that at this time a null/blank string is NOT considered valid.
|
![]() ![]() | RemoveProtocol |
Remove the protocol (e.g. http://) from a URL, if present.
|
![]() ![]() | UrlPathEncode |
Encode a file path for use in a url href. Ex: " " to "%20".
|