Table of Contents

Class HtmlText

Namespace
NuvTools.Report.Documents
Assembly
NuvTools.Report.dll

Rich text (HTML from an editor) as plain paragraphs, for documents that print text and not markup: block elements become paragraphs, line breaks stay, list items get a bullet, tags and scripts go and entities are decoded.

public static class HtmlText
Inheritance
HtmlText
Inherited Members

Methods

ToParagraphs(string?)

The paragraphs of the HTML, without empty ones; none for empty input.

public static IReadOnlyList<string> ToParagraphs(string? html)

Parameters

html string

Returns

IReadOnlyList<string>

ToPlainText(string?)

The HTML as one text, paragraphs separated by a blank line.

public static string ToPlainText(string? html)

Parameters

html string

Returns

string