modulepackage
0.0.0-20160926021243-b3c26999cab1
Repository: https://github.com/bcampbell/htmlutil.git
Documentation: pkg.go.dev
# README
Collecting together my various html helpers for golang
Not yet sure if this should be considered a proper package or just a source of snippets to cut&paste from...
A snappier name would be nice.
# Functions
GetAttr retrieves the value of an attribute on a node.
RenderNode renders HTML as text, using linebreaks for block elements.
Sanitise HTML - filter eleements and sttrs - remove comments - trim empty text nodes - TODO make links absolute.
TextContent recursively fetches the text for a node.