/html

[WIP] HTML Parser written in Go

Primary LanguageGoMIT LicenseMIT

HTML Parser

I am currently re-writing this parser.

This is a simple html parser, it really is nothing super serious. However, it will power nginB, a mini browser engine.

Usage

    package main

    import (
            "fmt"
            "github.com/timolinn/html-parser"
        )

    func main() {
        tmpl := []byte(`<html><body><p id="hw">Hello, world</p></body></html>`)
        parsed := html.Parse(tmpl)
        fmt.Printf("%+v\n", parsed)
    }