C# Class ContentFiltering.Office.Word.Cleaners.XmlNamespaceDefinitionsReplacer

Replaces the opening html tag with a given one.
Inheritance: IHTMLCleaner
Exibir arquivo Open project: xwiki-contrib/xwiki-office Class Usage Examples

Public Methods

Method Description
Clean ( string htmlCode ) : string

Replaces the opening html tag with a given one.

GetXmlNamespaceDefinitions ( String htmlCode ) : String

Gets a string representing the opening html tag with the XML namespace definitions, if any.

XmlNamespaceDefinitionsReplacer ( string newHtmlTag ) : System

Creates a new XmlNamespaceDefinitionsReplacer HTML cleaner (pre-DOM filter).

Method Details

Clean() public method

Replaces the opening html tag with a given one.
public Clean ( string htmlCode ) : string
htmlCode string The html source.
return string

GetXmlNamespaceDefinitions() public method

Gets a string representing the opening html tag with the XML namespace definitions, if any.
public GetXmlNamespaceDefinitions ( String htmlCode ) : String
htmlCode String The html source to be processed
return String

XmlNamespaceDefinitionsReplacer() public method

Creates a new XmlNamespaceDefinitionsReplacer HTML cleaner (pre-DOM filter).
public XmlNamespaceDefinitionsReplacer ( string newHtmlTag ) : System
newHtmlTag string Openening html tag that will replace the current one.
return System