Share via


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
Public method HtmlValidationContext Constructs a new HtmlValidationContext object.

Top

Properties

  Name Description
Public property 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.
Public property AllowFonts Gets or sets the constraint that allows font element tags to be added in the HTML.
Public property AllowHeadings Gets or sets the constraint that allows heading tags to be added in the HTML.
Public property AllowHyperlinks Gets or sets the constraint that allows hyperlinks to be added in the HTML.
Public property AllowImages Gets or sets the constraint that allows image tags to be added in the HTML.
Public property AllowLists Gets or sets the constraint that allows list tags to be added in the HTML.
Public property AllowReusableContent This member is reserved for internal use and is not intended to be used directly from your code.
Public property AllowTables Gets or sets the constraint that allows table handling tags to be added in the HTML.
Public property AllowTextMarkup Gets or sets the constraint that allows explicit text markup tags, such as bold and italic, to be added in the HTML.
Public property GuidOfThisSiteCollection Gets or sets the GUID of the current site collection.
Public property RestrictUrlsToSiteCollection Gets or sets the constraint that forces all URLs to point to the current site collection.
Public propertyStatic member ValidSiteSettingMessage This member is reserved for internal use and is not intended to be used directly from your code.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method ValidateHtml(String) Removes unsafe or disallowed HTML markup and returns validated HTML.
Public method ValidateHtml(String, Boolean, Boolean) Removes unsafe or disallowed HTML markup and returns validated HTML.
Public method ValidateImageValue Removes unsafe or disallowed URLs and HTML markup and returns a validated imageValue parameter.
Public method ValidateLinkValue Strips out unsafe or disallowed URLs and HTML markup and returns a validated LinkFieldValue object.

Top

See Also

Reference

HtmlValidationContext Class

Microsoft.SharePoint.Publishing.Fields Namespace