The HtmlUtils type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | AbsoluteToRelativeUrls |
Searches the provided html for absolute hrefs that match the provided aliases and converts them to relative urls
|
![]() ![]() | Clean |
Clean removes any HTML Tags, Entities (and optionally any punctuation) from
a string
|
![]() ![]() | CleanWithTagInfo |
CleanWithTagInfo removes unspecified HTML Tags, Entities (and optionally any punctuation) from a string.
|
![]() ![]() | ConvertToHtml |
Formats String as Html by replacing linefeeds by |
![]() ![]() | ConvertToText |
Formats Html as text by removing tags and replacing by linefeeds |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | FormatEmail(String) |
Formats an Email address
|
![]() ![]() | FormatEmail(String, Boolean) |
Formats an Email address
|
![]() ![]() | FormatText |
FormatText replaces tags by LineFeed characters |
![]() ![]() | FormatWebsite |
Format a domain name including link
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | IsHtml |
Determines wether or not the passed in string contains any HTML tags
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | RemoveInlineStyle |
Removes Inline CSS Styles
|
![]() ![]() | Shorten |
Shorten returns the first (x) characters of a string
|
![]() ![]() | StripEntities | Obsolete.
StripEntities removes the HTML Entities from the content
|
![]() ![]() | StripNonWord |
StripNonWord removes any Non-Word Character from the content
|
![]() ![]() | StripPunctuation |
StripPunctuation removes the Punctuation from the content
|
![]() ![]() | StripTags |
StripTags removes the HTML Tags from the content
|
![]() ![]() | StripUnspecifiedTags |
StripUnspecifiedTags removes the HTML tags from the content -- leaving behind the info
for the specified HTML tags.
|
![]() ![]() | StripWhiteSpace |
StripWhiteSpace removes the WhiteSpace from the content
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | WriteError |
WriteError outputs an Error Message during Install/Upgrade etc
|
![]() ![]() | WriteFeedback(HttpResponse, Int32, String) |
WriteFeedback outputs a Feedback Line during Install/Upgrade etc
|
![]() ![]() | WriteFeedback(HttpResponse, Int32, String, Boolean) |
WriteFeedback outputs a Feedback Line during Install/Upgrade etc
|
![]() ![]() | WriteFooter |
WriteFooter outputs the Footer during Install/Upgrade etc
|
![]() ![]() | WriteHeader |
WriteHeader outputs the Header during Install/Upgrade etc
|
![]() ![]() | WriteKeepAlive |
This method adds an empty char to the response stream to avoid closing http connection on long running tasks
|
![]() ![]() | WriteScriptSuccessError | |
![]() ![]() | WriteSuccessError |
Extension Methods
Name | Description | |
---|---|---|
![]() | ToJson |
Extension method on object that serializes the value to Json.
Note the type must be marked Serializable or include a DataContract attribute.
(Defined by JsonExtensionsWeb.) |