Class StripHtmlFilterRules
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Strips all html from filtered input.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.HtmlParsing.Internal
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
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 |
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 |
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 |
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 |