New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Sanitizes DOM event attributes from HTML content to prevent client-side script injection.

Definition

Namespace:Telerik.Web.UI.Editor.Content

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class DomEventsSanitizer : IContentSanitizer

Inheritance: objectDomEventsSanitizer

Implements: IContentSanitizer

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public DomEventsSanitizer()

Fields

C#
public static string[] DomEvents

Methods

Removes DOM event attributes from the provided input string.

C#
public string Sanitize(string input)
Parameters:inputstring

The input string containing DOM event attributes.

Returns:

string

The sanitized string with DOM event attributes removed.

Implements: IContentSanitizer.Sanitize(string)