sanitization

package
v0.0.0-...-17e35b8 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailValidationService

type EmailValidationService struct {
}

EmailValidationService realizes the EmailValidationProvider interface by offering functions for working with email validation and manipulation.

func NewEmailValidationService

func NewEmailValidationService() *EmailValidationService

func (*EmailValidationService) GetEmailComponents

func (service *EmailValidationService) GetEmailComponents(email string) (*mail.Address, error)

func (*EmailValidationService) IsValidEmail

func (service *EmailValidationService) IsValidEmail(email string) bool

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.

Jump to

Keyboard shortcuts

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