mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
10 lines
191 B
Go
10 lines
191 B
Go
package sanitize
|
|
|
|
import "github.com/microcosm-cc/bluemonday"
|
|
|
|
func HTML(html string) (output string, err error) {
|
|
policy := bluemonday.UGCPolicy()
|
|
output = policy.Sanitize(html)
|
|
return
|
|
}
|