Table of Contents

Class HtmlParser

Namespace
CivitaiSharp.Tools.Parsing
Assembly
CivitaiSharp.Tools.dll

Provides HTML parsing capabilities to convert HTML content to Markdown or plain text. This parser handles common HTML elements found in Civitai model descriptions.

public static class HtmlParser
Inheritance
HtmlParser
Inherited Members

Methods

ToMarkdown(string?)

Converts HTML content to Markdown format.

public static string ToMarkdown(string? html)

Parameters

html string

The HTML string to convert.

Returns

string

A Markdown representation of the HTML content.

ToPlainText(string?)

Converts HTML content to plain text, stripping all formatting.

public static string ToPlainText(string? html)

Parameters

html string

The HTML string to convert.

Returns

string

A plain text representation of the HTML content.