An open API service indexing awesome lists of open source software.

https://github.com/lestoni/html-version

Detect Version of HTML Document
https://github.com/lestoni/html-version

detection golang html

Last synced: 8 months ago
JSON representation

Detect Version of HTML Document

Awesome Lists containing this project

README

          

# HTML Version

Detect HTML Version of document from string, url or file

## Installation

`go get github.com/lestoni/html-version`

## Usage

Detect from html document string

```
htmlDocument := `



Title



`
version := HTMLVersion.DetectFromString(htmlDocument)

```

Detect From URL

```
version, err := HTMLVersion.DetectFromURL("http://golang.org/")

```

Detect From File

```
version, err := HTMLVersion.DetectFromFile("testdata/test.html")

```

---

[![GoDoc](https://godoc.org/github.com/lestoni/html-version?status.svg)](https://godoc.org/github.com/lestoni/html-version)
![](https://img.shields.io/badge/license-MIT-blue.svg)
![](https://img.shields.io/badge/status-stable-green.svg)