This repository contains C# code examples referenced in the Aspose.HTML for .NET documentation. These gists demonstrate practical ways to load, read, create, modify, and save HTML documents programmatically using C# and the powerful Aspose.HTML for .NET API.
The gists in this collection cover:
- Loading HTML documents from files, strings, streams, or web URLs.
- Loading EPUB and MHTML documents.
- Creating and manipulating HTML elements dynamically.
- Working with DOM, navigation, and content modification.
- Navigation and manipulation the DOM tree using W3C-compliant traversal interfaces to inspect and retrieve content from HTML documents.
- Setting custom user style sheets, font folders, message handlers, sandboxing, and other environment parameters to tailor document rendering and behavior.
- Saving HTML documents in different formats like HTML, MHTML, or Markdown.
- Saving documents along with all linked resources like CSS, fonts, and images using customizable saving options.
Each example is self-contained and ready to use.
These samples support the tutorials in the Working with HTML Documents chapter of the official documentation.
- Free Support Forum – Aspose.HTML
- Blog – Aspose.HTML Product Family
- API Reference – Aspose.HTML for .NET
- NuGet Package – Aspose.HTML for .NET
- Install the latest Aspose.HTML for .NET via NuGet.
- You can download a free trial of Aspose.HTML for .NET and use a temporary license for unrestricted access.
- Explore the gists in this repository and copy the relevant code to your project.
- Configure paths, settings, and inputs to suit your environment.
- .NET Platforms: .NET 5.0, .NET Framework 4.6.1+, or .NET Core 2.0+
- Supported OS: Windows, Linux, macOS
- Aspose.HTML for .NET