sanitizer

package module
v0.0.0-...-861c843 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2015 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XSSService

type XSSService struct {
	// contains filtered or unexported fields
}

XSSService implements the XSSServiceProvider interface and offers functions to help address cross-site script and sanitization concerns.

func NewXSSService

func NewXSSService() *XSSService

NewXSSService creates a new cross-site scripting service.

func (*XSSService) SanitizeString

func (service *XSSService) SanitizeString(input string) string

SanitizeString attempts to sanitize a string by removing potentially dangerous HTML/JS markup.

type XSSServiceProvider

type XSSServiceProvider interface {
	SanitizeString(input string) string
}

XSSServiceProvider is an interface for providing cross-site scripting and sanitization services.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL