November Happy Hour will be moved to Thursday December 5th.

Class StripHtmlFilterRules

Strips all html from filtered input.

Inheritance
System.Object
StripHtmlFilterRules
Implements
Namespace: EPiServer.HtmlParsing.Internal
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public class StripHtmlFilterRules : Object, IFilterRules

Constructors

StripHtmlFilterRules()

Declaration
public StripHtmlFilterRules()

Methods

ElementFilterLevel(FilterContext)

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)

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)

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)

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