Registry / utility / kennygrant-sanitize

kennygrant-sanitize

JSON →
library1.2.4gogounverified

Provides functions for sanitizing text.

go get github.com/kennygrant/sanitize
INSTALL
IMPORT
SIG · KENNYGRANT-SANITIZ
K
kennygrant-sanitize
utilitygov1.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sanitize
github.com/kennygrant/sanitize

Sanitizes an HTML string to remove script tags.

package main import ( "fmt" "github.com/kennygrant/sanitize" ) func main() { fmt.Println(sanitize.HTML("<script>alert('xss')</script>")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
kennygrant-sanitize — go get kennygrant-sanitize · libregistry