all repos — rel2abs @ master

go library to convert all relative urls in a html document to absolute ones

fe5c7d9f
Revert
Anirudh Oppiliappan x@icyphox.sh
Mon, 19 Dec 2022 09:05:52 +0530
cb04403b
Update go.mod
Anirudh Oppiliappan x@icyphox.sh
Sun, 04 Dec 2022 15:19:10 +0530
3afa938c
Rename to Convert
Anirudh Oppiliappan x@icyphox.sh
Thu, 30 Sep 2021 11:31:48 +0530
rel2abs
-------

Go library to convert all relative URLs to absolute ones, resolved
against a specified base URL.


EXAMPLE

    import (
        "fmt"

        "git.icyphox.sh/rel2abs"
    )

    func main() {
        htmlRel := `[1]`
        htmlAbs, err := rel2abs.Convert([]byte(htmlRel), "http://foo.com/bar")

        fmt.Println(htmlAbs)
        // [1]
    }
clone
git clone https://git.icyphox.sh/rel2abs