Метод | Описание | |
---|---|---|
AppendAttributeValue ( |
Appends the attribute value to the control appropriately.
|
|
AppendCssClass ( |
Appends a CSS class to a control.
|
|
CheckForUrl ( string text ) : |
Checks the text and prepends "http://" if it doesn't have it already.
|
|
ConvertHtmlToXHtml ( |
Converts the entry body into XHTML compliant text. Returns false if it encounters a problem in doing so.
|
|
ConvertHtmlToXHtml ( string html, string>.Converter |
Converts the specified html into XHTML compliant text.
|
|
ConvertToAllowedHtml ( |
Filters text to only allow defined HTML.
|
|
ConvertToAllowedHtml ( string text ) : string |
Filters text to only allow defined HTML.
|
|
ConvertUrlsToHyperLinks ( string html ) : string |
Wraps an anchor tag around all urls. Makes sure not to wrap already wrapped urls.
|
|
GetLinks ( string text ) : |
Returns a string collection of URLs within the specified text.
|
|
HasIllegalContent ( string s ) : bool |
Tests the specified string looking for illegal characters or html tags.
|
|
ParseTags ( string html ) : List |
Parses some html and returns a string collection of the tag names contained within the HTML.
|
|
ParseUri ( string uri ) : |
Parses the URI.
|
|
RemoveCssClass ( |
Removes a CSS class to a control.
|
|
RemoveHtml ( string text ) : string |
Strips HTML tags from the specified text.
|
|
RemoveHtmlAndComments ( string text ) : string |
Strips HTML tags and comments from the specified text
|
|
RemoveHtmlComments ( string text ) : string |
Strips HTML comments from the specified text
|
|
ReplaceHost ( string originalUrl, string newHost ) : string |
Replaces the host in the given url with the new host.
|
|
SafeFormat ( string stringToTransform ) : string |
The only HTML we will allow is hyperlinks. We will however, check for line breaks and replace them with
|
|
ShortenUrl ( string url, int max ) : string |
Shortens a url for display.
|
|
StripRTB ( string text, string host ) : string |
Strips the RTB, whatever that is.
|
Метод | Описание | |
---|---|---|
ConvertHtmlToXHtml ( |
Converts the specified html into XHTML compliant text.
|
|
FilterAttributes ( string tagName, |
Removes any non-permitted attributes for the given tagName. The permitted attributes are determined by the given allowedHtml collection. This will be a high volume method, so make it as efficient as possible |
|
GetAttributeNameValues ( |
||
HtmlSafe ( string text ) : string | ||
RemoveNewLineBeforeCDATA ( string text ) : string |
public static AppendAttributeValue ( |
||
control | ||
name | string | |
value | string | |
Результат | void |
public static AppendCssClass ( |
||
control | The control. | |
newClass | string | The new class. |
Результат | void |
public static CheckForUrl ( string text ) : |
||
text | string | Text. |
Результат |
public static ConvertHtmlToXHtml ( |
||
entry | Entry. | |
Результат | bool |
public static ConvertHtmlToXHtml ( string html, string>.Converter |
||
html | string | html to convert. |
converter | string>.Converter | The converter. |
Результат | string |
public static ConvertToAllowedHtml ( |
||
allowedHtmlTags | The allowed html tags. | |
text | string | Text. |
Результат | string |
public static ConvertToAllowedHtml ( string text ) : string | ||
text | string | Text. |
Результат | string |
public static ConvertUrlsToHyperLinks ( string html ) : string | ||
html | string | Html containing urls to convert. |
Результат | string |
public static GetLinks ( string text ) : |
||
text | string | The text. |
Результат |
public static HasIllegalContent ( string s ) : bool | ||
s | string | S. |
Результат | bool |
public static ParseTags ( string html ) : List |
||
html | string | |
Результат | List |
public static ParseUri ( string uri ) : |
||
uri | string | The URI. |
Результат |
public static RemoveCssClass ( |
||
control | The control. | |
classToRemove | string | The new class. |
Результат | void |
public static RemoveHtml ( string text ) : string | ||
text | string | The text. |
Результат | string |
public static RemoveHtmlAndComments ( string text ) : string | ||
text | string | The text |
Результат | string |
public static RemoveHtmlComments ( string text ) : string | ||
text | string | The text |
Результат | string |
public static ReplaceHost ( string originalUrl, string newHost ) : string | ||
originalUrl | string | |
newHost | string | |
Результат | string |
public static SafeFormat ( string stringToTransform ) : string | ||
stringToTransform | string | |
Результат | string |
public static ShortenUrl ( string url, int max ) : string | ||
url | string | The URL. |
max | int | Maximum size for the url. Anything longer gets shortened. |
Результат | string |
public static StripRTB ( string text, string host ) : string | ||
text | string | Text. |
host | string | Host. |
Результат | string |