Class HtmlUtils
Assembly: DotNetNuke.dll
Syntax
Constructors
HtmlUtils()
Declaration
Methods
AbsoluteToRelativeUrls(string, IEnumerable<string>)
Declaration
public static string AbsoluteToRelativeUrls(string html, IEnumerable<string> aliases)
Parameters
Returns
Clean(string, bool)
Declaration
public static string Clean(string html, bool removePunctuation)
Parameters
| Type |
Name |
Description |
| string |
html |
|
| bool |
removePunctuation |
|
Returns
CleanWithTagInfo(string, string, bool)
Declaration
public static string CleanWithTagInfo(string html, string tagsFilter, bool removePunctuation)
Parameters
Returns
ContainsEntity(string)
Declaration
public static bool ContainsEntity(string html)
Parameters
| Type |
Name |
Description |
| string |
html |
|
Returns
ConvertToHtml(string)
Declaration
public static string ConvertToHtml(string strText)
Parameters
| Type |
Name |
Description |
| string |
strText |
|
Returns
ConvertToText(string)
Declaration
public static string ConvertToText(string strHtml)
Parameters
| Type |
Name |
Description |
| string |
strHtml |
|
Returns
Declaration
public static string FormatEmail(string email)
Parameters
| Type |
Name |
Description |
| string |
email |
|
Returns
Declaration
public static string FormatEmail(string email, bool cloak)
Parameters
Returns
FormatText(string, bool)
Declaration
public static string FormatText(string html, bool retainSpace)
Parameters
| Type |
Name |
Description |
| string |
html |
|
| bool |
retainSpace |
|
Returns
Declaration
public static string FormatWebsite(object website)
Parameters
| Type |
Name |
Description |
| object |
website |
|
Returns
IsHtml(string)
Declaration
public static bool IsHtml(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
IsUrlEncoded(string)
Declaration
public static bool IsUrlEncoded(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
JavaScriptStringEncode(string)
Declaration
public static IHtmlString JavaScriptStringEncode(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
JavaScriptStringEncode(string, bool)
Declaration
public static IHtmlString JavaScriptStringEncode(string value, bool addDoubleQuotes)
Parameters
| Type |
Name |
Description |
| string |
value |
|
| bool |
addDoubleQuotes |
|
Returns
RemoveInlineStyle(string)
Declaration
public static string RemoveInlineStyle(string html)
Parameters
| Type |
Name |
Description |
| string |
html |
|
Returns
Shorten(string, int, string)
Declaration
public static string Shorten(string txt, int length, string suffix)
Parameters
Returns
StripEntities(string, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.0.0. Please use System.Web.HtmlUtility.HtmlDecode. Scheduled for removal in v11.0.0.")]
public static string StripEntities(string html, bool retainSpace)
Parameters
| Type |
Name |
Description |
| string |
html |
|
| bool |
retainSpace |
|
Returns
StripNonWord(string, bool)
Declaration
public static string StripNonWord(string html, bool retainSpace)
Parameters
| Type |
Name |
Description |
| string |
html |
|
| bool |
retainSpace |
|
Returns
StripPunctuation(string, bool)
Declaration
public static string StripPunctuation(string html, bool retainSpace)
Parameters
| Type |
Name |
Description |
| string |
html |
|
| bool |
retainSpace |
|
Returns
Declaration
public static string StripTags(string html, bool retainSpace)
Parameters
| Type |
Name |
Description |
| string |
html |
|
| bool |
retainSpace |
|
Returns
Declaration
public static string StripUnspecifiedTags(string html, string specifiedTags, bool retainSpace)
Parameters
Returns
StripWhiteSpace(string, bool)
Declaration
public static string StripWhiteSpace(string html, bool retainSpace)
Parameters
| Type |
Name |
Description |
| string |
html |
|
| bool |
retainSpace |
|
Returns
WriteError(HttpResponse, string, string)
Declaration
public static void WriteError(HttpResponse response, string file, string message)
Parameters
WriteFeedback(HttpResponse, int, string)
Declaration
public static void WriteFeedback(HttpResponse response, int indent, string message)
Parameters
WriteFeedback(HttpResponse, int, string, bool)
Declaration
public static void WriteFeedback(HttpResponse response, int indent, string message, bool showtime)
Parameters
Declaration
public static void WriteFooter(HttpResponse response)
Parameters
Declaration
public static void WriteHeader(HttpResponse response, string mode)
Parameters
WriteKeepAlive()
Declaration
public static void WriteKeepAlive()
WriteScriptSuccessError(HttpResponse, bool, string)
Declaration
public static void WriteScriptSuccessError(HttpResponse response, bool bSuccess, string strLogFile)
Parameters
WriteSuccessError(HttpResponse, bool)
Declaration
public static void WriteSuccessError(HttpResponse response, bool bSuccess)
Parameters
Extension Methods