Skip to main content
A newer version of this page is available. .

HtmlEditorHtmlEditingSettings.AllowScripts Property

Gets or sets a value that specifies whether the editor’s HTML markup can contain scripts.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v18.2.dll

Declaration

[DefaultValue(false)]
public bool AllowScripts { get; set; }

Property Value

Type Default Description
Boolean **false**

true if scripts are allowed within the editor’s content; false if scripts are automatically removed from the editor’s HTML markup.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowScripts
ASPxHtmlEditor
.SettingsHtmlEditing.AllowScripts
HtmlEditorBinderSettings
.HtmlEditingSettings.AllowScripts
HtmlEditorSettings
.SettingsHtmlEditing.AllowScripts
MVCxHtmlEditor
.SettingsHtmlEditing.AllowScripts

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