HtmlSettingsAttribute.AllowScripts Property
Gets or sets a value that specifies whether the editor’s HTML markup can contain scripts.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if scripts are allowed within the editor’s content; false if scripts are automatically removed from the editor’s HTML markup. |
Remarks
Use the AllowScripts property to specify whether the editor’s content should be kept safe and any potentially harmful markup code, such as scripts, should be automatically removed from the editor’s HTML markup.
If this property is set to false, script elements, client-side event handlers and ‘HREF’ attributes with script content will be automatically removed from the editor’s HTML markup.
See Also