Documentation
¶
Index ¶
- type Validator
- func (vld *Validator) BlacklistAttributes(attributes ...string)
- func (vld *Validator) BlacklistElements(elements ...string)
- func (vld Validator) Validate(b []byte) error
- func (vld Validator) ValidateReader(r io.Reader) error
- func (vld *Validator) WhitelistAttributes(attributes ...string)
- func (vld *Validator) WhitelistElements(elements ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator is a struct with private variables for storing the whitelists
func NewValidator ¶
func NewValidator() Validator
NewValidator creates a new validator with default whitelists
func (*Validator) BlacklistAttributes ¶
BlacklistAttributes removes svg attributes from the whitelist
func (*Validator) BlacklistElements ¶
BlacklistElements removes svg elements from the whitelist
func (Validator) ValidateReader ¶
ValidateReader validates svg data from an io.Reader interface
func (*Validator) WhitelistAttributes ¶
WhitelistAttributes adds svg attributes to the whitelist
func (*Validator) WhitelistElements ¶
WhitelistElements adds svg elements to the whitelist
Click to show internal directories.
Click to hide internal directories.