Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atifaziz/High5
HTML parsing & serialization toolset for .NET Standard
https://github.com/atifaziz/High5
Last synced: about 2 months ago
JSON representation
HTML parsing & serialization toolset for .NET Standard
- Host: GitHub
- URL: https://github.com/atifaziz/High5
- Owner: atifaziz
- License: mit
- Created: 2017-08-23T16:13:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T13:26:29.000Z (6 months ago)
- Last Synced: 2024-07-31T09:12:48.189Z (5 months ago)
- Language: HTML
- Homepage:
- Size: 709 KB
- Stars: 98
- Watchers: 10
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - atifaziz/High5 - HTML parsing & serialization toolset for .NET Standard (HTML)
README
# High5
[![Build Status][win-build-badge]][win-builds]
[![Build Status][nix-build-badge]][nix-builds]
[![NuGet][nuget-badge]][nuget-pkg]
[![MyGet][myget-badge]][edge-pkgs]High5 is a [spec-compliant HTML][html] parser [.NET Standard][netstd] library.
It parses HTML the way the latest version of your browser does.High5 was born by porting [parse5][parse5], which is in JavaScript, to C#.
High5's parser is generic. It can work with any tree model for an HTML
document. A default model implementation is supplied that builds a read-only
tree of HTML nodes.## Examples
Parse an HTML document:
```c#
var html = await new HttpClient().GetStringAsync("http://www.example.com/");
var document = Parser.Parse(html);
```Parse an HTML document fragment:
```c#
var html = @"
";
Example Domain
This domain is established to be used for illustrative examples
in documents. You may use this domain in examples without prior
coordination or asking for permission.
var fragment = Parser.ParseFragment(html, null);
```[win-build-badge]: https://img.shields.io/appveyor/ci/raboof/high5/master.svg?label=windows
[win-builds]: https://ci.appveyor.com/project/raboof/high5
[nix-build-badge]: https://img.shields.io/travis/atifaziz/High5/master.svg?label=linux
[nix-builds]: https://travis-ci.org/atifaziz/High5
[myget-badge]: https://img.shields.io/myget/raboof/vpre/High5.svg?label=myget
[edge-pkgs]: https://www.myget.org/feed/raboof/package/nuget/High5
[nuget-badge]: https://img.shields.io/nuget/v/High5.svg
[nuget-pkg]: https://www.nuget.org/packages/High5
[html]: https://html.spec.whatwg.org
[netstd]: https://docs.microsoft.com/en-us/dotnet/standard/net-standard
[parse5]: https://github.com/inikulin/parse5