Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bluemonday ¶
type Bluemonday struct {
// contains filtered or unexported fields
}
Bluemonday uses the bluemonday package for sanitizing input
func NewBluemondayService ¶
func NewBluemondayService() *Bluemonday
NewBluemondayService creates a new bluemonday sanitizer service
func (*Bluemonday) ContentHTML ¶
func (b *Bluemonday) ContentHTML(input string) string
Sanitizes input to a very restricted HTML subset for content of type HTML
func (*Bluemonday) String ¶
func (b *Bluemonday) String(input string) string
Sanitizes input to a plain string
type Fake ¶
type Fake struct{}
Fake returns the input unchanged
func NewFakeService ¶
func NewFakeService() *Fake
NewFakeService creates a new fake sanitizer service
func (*Fake) ContentHTML ¶
Sanitizes input to a very restricted HTML subset for content of type HTML
Click to show internal directories.
Click to hide internal directories.