The HTMLHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Methods
Name | Description | |
---|---|---|
AddToHeader |
Adds the given HTML code to the header of the page.
| |
EncodeAngleBrackets | Obsolete.
Replace angle brackets with HTML encode entity (</>)
| |
EncodeForHtmlAttribute |
HTML encoding function. Encodes input for HTML attribute.
| |
EncodeLinkReference |
Encodes URL in order to be used as href parameter in link.
| |
EncodeQuotes | Obsolete.
Replace quote characters (double or simple) with HTML encode entity ("/")
| |
EnsureLineEnding |
Ensures proper line ending within the given string.
| |
EnsureURLPrefixes(String, String, String) |
Ensures that all local URLs have given prefix
| |
EnsureURLPrefixes(String, String, String, URLHelper PathModifierHandler) |
Ensures that all local URLs have given prefix
| |
FixFormAction(String, String) |
Fixes the form action attribute within given HTML code.
| |
FixFormAction(String, String, Boolean, Boolean) |
Fixes the form action attribute within given HTML code.
| |
FixFormAction(String, String, Boolean, Boolean, String) |
Fixes the form action attribute within given HTML code.
| |
FixRTLText |
Fixes RTL text. Adds special marks at the end (at the beginning) of the text if it ends (starts) with weak unicode symbol.
| |
FixUrl |
Fixes the URL within given HTML code. The output code is HTML valid.
It changes '&' to '&' and backwards if needed.
'?test=1&test2=2' is changed to '?test=1&test2=2'
'&#13;' is changed to ' '.
'&lt;' is changed to '<'.
| |
FixViewstate |
Fixes the view state tag within given HTML code.
| |
FixXHTML |
Performs the HTML code fix to become valid XHTML. Method for complete fix solution.
| |
GetAttributeValue |
Gets the value of the HTML element's attribute.
| |
GetConvertTableEnum |
Converts the string representation to the ConvertTableEnum
| |
GetCSSFileLink | Obsolete.
Returns the HTML code for the CSS style link.
| |
GetFormAction |
Gets the form action for the current request.
| |
GetLink |
Returns the HTML link element that links to a related document.
| |
GetSafeColorFromHtml |
Returns color from HTML string color definition.
| |
GetUniqueControlID |
Gets the unique ID for the control, if some other control has the same base ID, adds the number at the end.
| |
HighlightHTML |
Highlight HTML.
| |
HTMLDecode |
Convers a string that has been HTML encoded into a decoded string.
| |
HTMLEncode |
HTML encoding function. Leaves previously encoded HTML entities.
| |
HTMLEncodeLineBreaks |
HTML encoding function. HTML encodes given text and replaces standard line breaks with br tag.
| |
HtmlToPlainText |
Converts html to the plain text (body part).
| |
LimitLength |
Limits the string length.
| |
ReformatHTML(String) |
Reformats the HTML code indentation.
| |
ReformatHTML(String, String) |
Reformats the HTML code indentation.
| |
ReformatHTML(String, String, Int32) |
Reformats the HTML code indentation.
| |
RemoveFormName |
Removes form name tag from the given HTML code.
| |
RemoveScripts |
Removes the scripts from the given HTML text.
| |
RemoveTitleId |
Removes the title ID attribute from the HTML code.
| |
ReplaceTagParameter(String, String, String) |
Replaces an attribute of a specified name inside an HTML element.
| |
ReplaceTagParameter(String, String, MatchEvaluator) |
Replaces an attribute of a specified name inside an HTML element.
| |
ResolveCSSClientUrls |
Resolves client-relative URLs in CSS rules to absolute URLs (used with css files).
| |
ResolveCSSUrls |
Resolves application-relative URLs in CSS rules to absolute URLs (used with database stylesheets).
| |
ResolveUrls(String, String) |
Resolves relative urls in given HTML(string).
If CMSResolveAllUrls app settings is true it resolves all urls.
Otherwise it resolves urls used in "src" or "href" or "background" attributes.
| |
ResolveUrls(String, String, Boolean) |
Resolves relative urls in given HTML(string).
If CMSResolveAllUrls app settings is true it resolves all urls.
Otherwise it resolves urls used in "src" or "href" or "background" attributes.
| |
SpanMsg |
Returns span (of specified CSS class) containing message.
| |
StripTags(String) |
Remove HTML tags from text.
| |
StripTags(String, Boolean) |
Remove HTML tags from text.
| |
StripTags(String, Boolean, String) |
Remove HTML tags from text.
| |
StripTags(String, Boolean, Boolean, String, String, String) |
Remove HTML tags from text.
| |
UnResolveUrls |
Unresolve relative url if is use in "src" or "href".
| |
UseNoFollowForUsersLinks |
Returns true if rel="nofollow" should be used for users link in forums, blog comments or message boards
|
Fields
Name | Description | |
---|---|---|
DOCTYPE_HTML5 |
HTML 5 document type.
| |
mHandler404Page |
Handler 404 page name.
|
Properties
Name | Description | |
---|---|---|
QuickResolveUrls |
If true, quick mode is used for resolving of the URLs.
| |
RegExFixAJAXFormAction |
Regular expression to fix the form action parameter for AJAX request.
| |
RegExFixFormAction |
Regular expression to fix the form action parameter.
| |
RegExHTMLEncode |
Regular expression for HTML encoding.
| |
RegexHtmlToTextHead |
Regular expression for removing entire head tag.
| |
RegexHtmlToTextScript |
Regular expression for removing entire script tag.
| |
RegexHtmlToTextStyle |
Regular expression for removing entire script tag.
| |
RegexHtmlToTextTags |
Regular expression for removing tags but keeps their content.
| |
RegexHtmlToTextWhiteSpace |
Regular expression for removing white spaces
| |
RegExLineEnd |
Regular expression match for the end of the line.
| |
RegExResolveUrls |
Regular expression for URL resolving.
| |
RegExStripTagsSpaces |
Regular expression match for new lines and spaces between tags.
| |
UseExtensionOnPostback |
Use extension on postback?
|
See Also