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
<PackageReference Include="horaios.de.HtmlUtility" Version="2.10.20.1301" />
paket add horaios.de.HtmlUtility --version 2.10.20.1301
#r "nuget: horaios.de.HtmlUtility, 2.10.20.1301"
// 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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
- HtmlAgilityPack (>= 1.11.46)
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 | 311 | 10/20/2022 |
2.10.20.1204 | 228 | 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);