Documentation ¶
Overview ¶
Package sanitize provide a function to sanitize markup document into plain text.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTML ¶
HTML sanitize the content of HTML into plain text.
Example ¶
input := ` <html> <title>Test</title> <head> </head> <body> This <p> is </p> a <a href="/">link</a>. An another <a href="/">link</a>. </body> </html> ` out := HTML([]byte(input)) fmt.Printf("%s", out)
Output: This is a link. An another link.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.