Class StripHtmlFilterRules
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
Assembly: EPiServer.Framework.dll
Version: 9.12.2Syntax
public class StripHtmlFilterRules : 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 |