replace zxq.co/ripple/hanayo
This commit is contained in:
13
vendor/github.com/microcosm-cc/bluemonday/cmd/sanitise_ugc/doc.go
generated
vendored
Normal file
13
vendor/github.com/microcosm-cc/bluemonday/cmd/sanitise_ugc/doc.go
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
Package main demonstrates a simple user generated content sanitizer.
|
||||
|
||||
This is the configuration I use on the sites that I run, it allows a lot of safe
|
||||
HTML that in my case comes from the blackfriday markdown package. As markdown
|
||||
itself allows HTML the UGCPolicy includes most common HTML.
|
||||
|
||||
CSS and JavaScript is excluded (not white-listed), as are form elements and most
|
||||
embedded media that isn't just an image or image map.
|
||||
|
||||
As I'm paranoid, I also do not allow data-uri images and embeds.
|
||||
*/
|
||||
package main
|
Reference in New Issue
Block a user