SaaS CMS has officially launched! Learn more now.

Class StripHtmlFilterRules

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Strips all html from filtered input.

Inheritance
System.Object
StripHtmlFilterRules
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.HtmlParsing.Internal
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public class StripHtmlFilterRules : IFilterRules

Constructors

StripHtmlFilterRules()

Declaration
public StripHtmlFilterRules()

Methods

ElementFilterLevel(FilterContext)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Will keep content for elements except script or style elements.

Declaration
public ElementFilterAction ElementFilterLevel(FilterContext context)
Parameters
Type Name Description
FilterContext context

The filtering context.

Returns
Type Description
ElementFilterAction

If context is anything except script or style KeepContent; otherwise Remove.

IsSafeAttribute(FilterContext, AttributeToken, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. No attribute is safe.

Declaration
public bool IsSafeAttribute(FilterContext context, AttributeToken name, string value)
Parameters
Type Name Description
FilterContext context

The filtering context.

AttributeToken name

The attribute name.

System.String value

The attribute value.

Returns
Type Description
System.Boolean

Always false.

IsSafeTextFragment(FilterContext, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. No textfragment is safe.

Declaration
public bool IsSafeTextFragment(FilterContext context, string content)
Parameters
Type Name Description
FilterContext context

The filtering context.

System.String content

The content.

Returns
Type Description
System.Boolean

Always false.

KeepNakedElement(FilterContext)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Never keep naked element.

Declaration
public bool KeepNakedElement(FilterContext context)
Parameters
Type Name Description
FilterContext context

The filtering context.

Returns
Type Description
System.Boolean

Always false.

Implements

Extension Methods