Class HtmlWashSettings

Settings for HtmlWash class

Inheritance
System.Object
HtmlWashSettings
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.Core.Html
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[Obsolete("This class is no longer maintained, it was primarily created to support the legacy office integration")]
public class HtmlWashSettings

Constructors

HtmlWashSettings()

Declaration
public HtmlWashSettings()

Properties

AllowedClassRegex

Regular expression to remove all Classes that match

Declaration
public string AllowedClassRegex { get; set; }
Property Value
Type Description
System.String

AllowedStyles

Allowed keys in Style attributes

Declaration
public Dictionary<string, string> AllowedStyles { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.String>

ClassMapping

Map one class to another

Declaration
public Dictionary<string, string> ClassMapping { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.String>

CleanStyles

Is styles should be cleaned through allowed styles

Declaration
public bool CleanStyles { get; set; }
Property Value
Type Description
System.Boolean

DeleteBlocks

Delete all blocks, for example script

Declaration
public List<string> DeleteBlocks { get; }
Property Value
Type Description
System.Collections.Generic.List<System.String>

DeleteTagAttributes

Delete all tags with the a specific attribtue critera

Declaration
public NameValueCollection DeleteTagAttributes { get; }
Property Value
Type Description
System.Collections.Specialized.NameValueCollection

DeleteTags

Delete tags but leave the inner content

Declaration
public List<string> DeleteTags { get; }
Property Value
Type Description
System.Collections.Generic.List<System.String>

NodeMappings

Map node to other nodes

Declaration
public Dictionary<string, string> NodeMappings { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.String>

RemoveComments

Remove all comments

Declaration
public bool RemoveComments { get; set; }
Property Value
Type Description
System.Boolean

RemoveFontTags

Remove all font tags but leave inner content

Declaration
public bool RemoveFontTags { get; set; }
Property Value
Type Description
System.Boolean

RemoveUnknownNamespaces

Remove uknown namespaces, for example added by Office applications

Declaration
public bool RemoveUnknownNamespaces { get; set; }
Property Value
Type Description
System.Boolean

Methods

LoadSettingsFromXml(XmlNode)

Load settings from a XML document

Declaration
public void LoadSettingsFromXml(XmlNode rootNode)
Parameters
Type Name Description
System.Xml.XmlNode rootNode

ToXmlDocument()

Serialize settings to a XML document

Declaration
public XmlDocument ToXmlDocument()
Returns
Type Description
System.Xml.XmlDocument

Extension Methods