Skip to main content

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.v24.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.

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