The HtmlUtils type exposes the following members.

Constructors

  NameDescription
Public methodHtmlUtils
DotNetNuke.Common.Utilities.HtmlUtils

Methods

  NameDescription
Public methodStatic memberAbsoluteToRelativeUrls
Searches the provided html for absolute hrefs that match the provided aliases and converts them to relative urls
Public methodStatic memberClean
Clean removes any HTML Tags, Entities (and optionally any punctuation) from a string
Public methodStatic memberCleanWithTagInfo
CleanWithTagInfo removes unspecified HTML Tags, Entities (and optionally any punctuation) from a string.
Public methodStatic memberConvertToHtml
Formats String as Html by replacing linefeeds by
Public methodStatic memberConvertToText
Formats Html as text by removing
tags and replacing by linefeeds
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFormatEmail(String)
Formats an Email address
Public methodStatic memberFormatEmail(String, Boolean)
Formats an Email address
Public methodStatic memberFormatText
FormatText replaces
tags by LineFeed characters
Public methodStatic memberFormatWebsite
Format a domain name including link
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsHtml
Determines wether or not the passed in string contains any HTML tags
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRemoveInlineStyle
Removes Inline CSS Styles
Public methodStatic memberShorten
Shorten returns the first (x) characters of a string
Public methodStatic memberStripEntities Obsolete.
StripEntities removes the HTML Entities from the content
Public methodStatic memberStripNonWord
StripNonWord removes any Non-Word Character from the content
Public methodStatic memberStripPunctuation
StripPunctuation removes the Punctuation from the content
Public methodStatic memberStripTags
StripTags removes the HTML Tags from the content
Public methodStatic memberStripUnspecifiedTags
StripUnspecifiedTags removes the HTML tags from the content -- leaving behind the info for the specified HTML tags.
Public methodStatic memberStripWhiteSpace
StripWhiteSpace removes the WhiteSpace from the content
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberWriteError
WriteError outputs an Error Message during Install/Upgrade etc
Public methodStatic memberWriteFeedback(HttpResponse, Int32, String)
WriteFeedback outputs a Feedback Line during Install/Upgrade etc
Public methodStatic memberWriteFeedback(HttpResponse, Int32, String, Boolean)
WriteFeedback outputs a Feedback Line during Install/Upgrade etc
Public methodStatic memberWriteFooter
WriteFooter outputs the Footer during Install/Upgrade etc
Public methodStatic memberWriteHeader
WriteHeader outputs the Header during Install/Upgrade etc
Public methodStatic memberWriteKeepAlive
This method adds an empty char to the response stream to avoid closing http connection on long running tasks
Public methodStatic memberWriteScriptSuccessError
Public methodStatic memberWriteSuccessError

Extension Methods

  NameDescription
Public Extension MethodToJson
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.)

See Also