Skip to content

lestoni/html-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 := `<!DOCTYPE html>
    <html>
      <head></head>
      <body>
        <h1>Title</h1>
      </body>
    </html>`
  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

About

Detect Version of HTML Document

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published