hanayo/vendor/github.com/microcosm-cc/bluemonday/cmd/sanitise_html_email/doc.go
2019-02-23 13:29:15 +00:00

13 lines
439 B
Go

/*
Package main demonstrates a HTML email cleaner.
It should be noted that this uses bluemonday to sanitize the HTML but as it
preserves the styling of the email this should not be considered a safe or XSS
secure approach.
It does function as a basic demonstration of how to take HTML emails, which are
notorious for having inconsistent, obselete and poorly formatted HTML, and to
use bluemonday to normalise the output.
*/
package main