Class StripHtmlFilterRules
Strips all html from filtered input.
Inheritance
System.Object
StripHtmlFilterRules
Implements
Namespace: EPiServer.HtmlParsing.Internal
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
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 |
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 |
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 |
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 |