Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAttr ¶
GetAttr retrieves the value of an attribute on a node. Returns empty string if attribute doesn't exist.
func RenderNode ¶
RenderNode renders HTML as text, using linebreaks for block elements
func Sanitise ¶
Sanitise HTML - filter eleements and sttrs - remove comments - trim empty text nodes - TODO make links absolute
func TextContent ¶
TextContent recursively fetches the text for a node
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.