HTMLHelper MembersKentico 8.1 API Reference
The HTMLHelper type exposes the following members.
Methods

  NameDescription
Public methodStatic memberAddToHeader
Adds the given HTML code to the header of the page.
Public methodStatic memberEncodeAngleBracketsObsolete.
Replace angle brackets with HTML encode entity (</>)
Public methodStatic memberEncodeForHtmlAttribute
HTML encoding function. Encodes input for HTML attribute.
Public methodStatic memberEncodeLinkReference
Encodes URL in order to be used as href parameter in link.
Public methodStatic memberEncodeQuotesObsolete.
Replace quote characters (double or simple) with HTML encode entity ("/")
Public methodStatic memberEnsureLineEnding
Ensures proper line ending within the given string.
Public methodStatic memberEnsureURLPrefixes(String, String, String)
Ensures that all local URLs have given prefix
Public methodStatic memberEnsureURLPrefixes(String, String, String, URLHelper PathModifierHandler)
Ensures that all local URLs have given prefix
Public methodStatic memberFixFormAction(String, String)
Fixes the form action attribute within given HTML code.
Public methodStatic memberFixFormAction(String, String, Boolean, Boolean)
Fixes the form action attribute within given HTML code.
Public methodStatic memberFixFormAction(String, String, Boolean, Boolean, String)
Fixes the form action attribute within given HTML code.
Public methodStatic memberFixRTLText
Fixes RTL text. Adds special marks at the end (at the beginning) of the text if it ends (starts) with weak unicode symbol.
Public methodStatic memberFixUrl
Fixes the URL within given HTML code. The output code is HTML valid. It changes '&' to '&amp;' and backwards if needed. '?test=1&test2=2' is changed to '?test=1&amp;test2=2' '&amp;#13;' is changed to '&#13;'. '&amp;lt;' is changed to '&lt;'.
Public methodStatic memberFixViewstate
Fixes the view state tag within given HTML code.
Public methodStatic memberFixXHTML
Performs the HTML code fix to become valid XHTML. Method for complete fix solution.
Public methodStatic memberGetAttributeValue
Gets the value of the HTML element's attribute.
Public methodStatic memberGetConvertTableEnum
Converts the string representation to the ConvertTableEnum
Public methodStatic memberGetCSSFileLinkObsolete.
Returns the HTML code for the CSS style link.
Public methodStatic memberGetFormAction
Gets the form action for the current request.
Public methodStatic memberGetLink
Returns the HTML link element that links to a related document.
Public methodStatic memberGetSafeColorFromHtml
Returns color from HTML string color definition.
Public methodStatic memberGetUniqueControlID
Gets the unique ID for the control, if some other control has the same base ID, adds the number at the end.
Public methodStatic memberHighlightHTML
Highlight HTML.
Public methodStatic memberHTMLDecode
Convers a string that has been HTML encoded into a decoded string.
Public methodStatic memberHTMLEncode
HTML encoding function. Leaves previously encoded HTML entities.
Public methodStatic memberHTMLEncodeLineBreaks
HTML encoding function. HTML encodes given text and replaces standard line breaks with br tag.
Public methodStatic memberHtmlToPlainText
Converts html to the plain text (body part).
Public methodStatic memberLimitLength
Limits the string length.
Public methodStatic memberReformatHTML(String)
Reformats the HTML code indentation.
Public methodStatic memberReformatHTML(String, String)
Reformats the HTML code indentation.
Public methodStatic memberReformatHTML(String, String, Int32)
Reformats the HTML code indentation.
Public methodStatic memberRemoveFormName
Removes form name tag from the given HTML code.
Public methodStatic memberRemoveScripts
Removes the scripts from the given HTML text.
Public methodStatic memberRemoveTitleId
Removes the title ID attribute from the HTML code.
Public methodStatic memberReplaceTagParameter(String, String, String)
Replaces an attribute of a specified name inside an HTML element.
Public methodStatic memberReplaceTagParameter(String, String, MatchEvaluator)
Replaces an attribute of a specified name inside an HTML element.
Public methodStatic memberResolveCSSClientUrls
Resolves client-relative URLs in CSS rules to absolute URLs (used with css files).
Public methodStatic memberResolveCSSUrls
Resolves application-relative URLs in CSS rules to absolute URLs (used with database stylesheets).
Public methodStatic memberResolveUrls(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.
Public methodStatic memberResolveUrls(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.
Public methodStatic memberSpanMsg
Returns span (of specified CSS class) containing message.
Public methodStatic memberStripTags(String)
Remove HTML tags from text.
Public methodStatic memberStripTags(String, Boolean)
Remove HTML tags from text.
Public methodStatic memberStripTags(String, Boolean, String)
Remove HTML tags from text.
Public methodStatic memberStripTags(String, Boolean, Boolean, String, String, String)
Remove HTML tags from text.
Public methodStatic memberUnResolveUrls
Unresolve relative url if is use in "src" or "href".
Public methodStatic memberUseNoFollowForUsersLinks
Returns true if rel="nofollow" should be used for users link in forums, blog comments or message boards
Back to Top
Fields

  NameDescription
Public fieldStatic memberDOCTYPE_HTML5
HTML 5 document type.
Public fieldStatic membermHandler404Page
Handler 404 page name.
Back to Top
Properties

  NameDescription
Public propertyStatic memberQuickResolveUrls
If true, quick mode is used for resolving of the URLs.
Public propertyStatic memberRegExFixAJAXFormAction
Regular expression to fix the form action parameter for AJAX request.
Public propertyStatic memberRegExFixFormAction
Regular expression to fix the form action parameter.
Public propertyStatic memberRegExHTMLEncode
Regular expression for HTML encoding.
Public propertyStatic memberRegexHtmlToTextHead
Regular expression for removing entire head tag.
Public propertyStatic memberRegexHtmlToTextScript
Regular expression for removing entire script tag.
Public propertyStatic memberRegexHtmlToTextStyle
Regular expression for removing entire script tag.
Public propertyStatic memberRegexHtmlToTextTags
Regular expression for removing tags but keeps their content.
Public propertyStatic memberRegexHtmlToTextWhiteSpace
Regular expression for removing white spaces
Public propertyStatic memberRegExLineEnd
Regular expression match for the end of the line.
Public propertyStatic memberRegExResolveUrls
Regular expression for URL resolving.
Public propertyStatic memberRegExStripTagsSpaces
Regular expression match for new lines and spaces between tags.
Public propertyStatic memberUseExtensionOnPostback
Use extension on postback?
Back to Top
See Also