horaios.de.HtmlUtility 2.10.20.1301

Prefix Reserved
dotnet add package horaios.de.HtmlUtility --version 2.10.20.1301                
NuGet\Install-Package horaios.de.HtmlUtility -Version 2.10.20.1301                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="horaios.de.HtmlUtility" Version="2.10.20.1301" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add horaios.de.HtmlUtility --version 2.10.20.1301                
#r "nuget: horaios.de.HtmlUtility, 2.10.20.1301"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install horaios.de.HtmlUtility as a Cake Addin
#addin nuget:?package=horaios.de.HtmlUtility&version=2.10.20.1301

// Install horaios.de.HtmlUtility as a Cake Tool
#tool nuget:?package=horaios.de.HtmlUtility&version=2.10.20.1301                

Utility for HTML

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.10.20.1301 307 10/20/2022
2.10.20.1204 226 10/20/2022

//example 1: plain text from html file
var plainText1 = HtmlToText.FromFile("test.html", Encoding.UTF8, true);
File.WriteAllText("text1.txt", plainText1, Encoding.UTF8);

//example 2: plain text from html string
var plainText2 = HtmlToText.FromHtml(File.ReadAllText("test.html", Encoding.UTF8), true);
File.WriteAllText("text2.txt", plainText2, Encoding.UTF8);

//example 2: plain text from html document
var htmlDocument = new HtmlDocument();
htmlDocument.LoadHtml(File.ReadAllText("test.html", Encoding.UTF8));
var plainText3 = HtmlToText.FromHtmlDocument(htmlDocument, true);
File.WriteAllText("text3.txt", plainText3, Encoding.UTF8);