Documentation ¶
Overview ¶
* Copyright (c) 2021. App Nerds LLC. All rights reserved
* Copyright (c) 2021. App Nerds LLC. All rights reserved
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IXSSServiceProvider ¶
IXSSServiceProvider is an interface for providing cross-site scripting and sanitization services.
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.
Click to show internal directories.
Click to hide internal directories.