C# Класс XWiki.Html.HtmlUtil

Provides functionalities for cleaning and repairing html code.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
HtmlToXhtml ( String htmlSource ) : String

Cleans a given html code.

IndentContent ( String htmlSource ) : String

Indents the given html source.

RemoveSpecificTagContent ( String content, String tagBegining, String tagEnding ) : String

Removes a char sequence that starts and ends with the given valaues.

ReplaceBody ( String initialContent, String newBodyTag ) : String

Replaces the body tag with a new given one.

WordHtmlToXhtml ( String htmlSource ) : String

Cleans a Word html source.

Описание методов

HtmlToXhtml() публичный Метод

Cleans a given html code.
public HtmlToXhtml ( String htmlSource ) : String
htmlSource String The html code.
Результат String

IndentContent() публичный Метод

Indents the given html source.
public IndentContent ( String htmlSource ) : String
htmlSource String The html source.
Результат String

RemoveSpecificTagContent() публичный Метод

Removes a char sequence that starts and ends with the given valaues.
public RemoveSpecificTagContent ( String content, String tagBegining, String tagEnding ) : String
content String The initial content.
tagBegining String The begining of the char sequence.
tagEnding String The end of the char sequence.
Результат String

ReplaceBody() публичный Метод

Replaces the body tag with a new given one.
public ReplaceBody ( String initialContent, String newBodyTag ) : String
initialContent String The initial html code.
newBodyTag String The new body tag.
Результат String

WordHtmlToXhtml() публичный Метод

Cleans a Word html source.
public WordHtmlToXhtml ( String htmlSource ) : String
htmlSource String The initila html source.
Результат String