README.md (1063B)
1 # htmltools 2 3 [![godocs.io](https://godocs.io/entf.net/htmltools?status.svg)](https://godocs.io/entf.net/htmltools) 4 5 This is a collection of utilities to manipulate HTML documents. 6 7 - htmltotext: removes all tags from an HTML document leaving only the text nodes 8 - htmlremove: removes elements matching a selector from an HTML document 9 - htmlunwrap: removes elements matching a selector from an HTML document and 10 replaces them with their child nodes 11 - htmlselect: prints all elements matching a selector from an HTML document 12 - htmlindentheadings: indents (shifts) all h1-h6 elements by some level 13 - htmlattr: prints attributes of top level nodes 14 15 You can find more info on how to use these tools in their 16 [scdoc](https://git.sr.ht/~sircmpwn/scdoc) documents found in their respective 17 subfolders. 18 19 The top level package also usable as a library. 20 21 ## Installation 22 23 Either `go get` a specific tool like this: 24 25 ``` 26 go get entf.net/htmltools/cmd/htmltotext 27 ``` 28 29 or clone the repository and run `make install`. The latter will install all the 30 tools and the manpages.