HtmlValidationContext Members
Include Protected Members
Include Inherited Members
This class handles all validation checking and HTML filtering, based on constraint properties that are set on the validation context.
The HtmlValidationContext type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HtmlValidationContext | Constructs a new HtmlValidationContext object. |
Top
Properties
Name | Description | |
---|---|---|
AllowedTagsSettingsMessage | Gets a message—that can be read by a person—that describes the constraints and disallowed tags for the HTML in this HtmlValidationContext object. | |
AllowFonts | Gets or sets the constraint that allows font element tags to be added in the HTML. | |
AllowHeadings | Gets or sets the constraint that allows heading tags to be added in the HTML. | |
AllowHyperlinks | Gets or sets the constraint that allows hyperlinks to be added in the HTML. | |
AllowImages | Gets or sets the constraint that allows image tags to be added in the HTML. | |
AllowLists | Gets or sets the constraint that allows list tags to be added in the HTML. | |
AllowReusableContent | This member is reserved for internal use and is not intended to be used directly from your code. | |
AllowTables | Gets or sets the constraint that allows table handling tags to be added in the HTML. | |
AllowTextMarkup | Gets or sets the constraint that allows explicit text markup tags, such as bold and italic, to be added in the HTML. | |
GuidOfThisSiteCollection | Gets or sets the GUID of the current site collection. | |
RestrictUrlsToSiteCollection | Gets or sets the constraint that forces all URLs to point to the current site collection. | |
ValidSiteSettingMessage | This member is reserved for internal use and is not intended to be used directly from your code. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
ValidateHtml(String) | Removes unsafe or disallowed HTML markup and returns validated HTML. | |
ValidateHtml(String, Boolean, Boolean) | Removes unsafe or disallowed HTML markup and returns validated HTML. | |
ValidateImageValue | Removes unsafe or disallowed URLs and HTML markup and returns a validated imageValue parameter. | |
ValidateLinkValue | Strips out unsafe or disallowed URLs and HTML markup and returns a validated LinkFieldValue object. |
Top