Download pkg/utils/html.go from lin7zhi/OpenList: direct link, hf CLI and curl.
- Browser
- Download file 190 Bytes
-
https://huggingface.co/spaces/lin7zhi/OpenList/resolve/main/pkg/utils/html.go
- Command line
-
hf download hf://spaces/lin7zhi/OpenList/pkg/utils/html.go
-
curl -L -o html.go https://huggingface.co/spaces/lin7zhi/OpenList/resolve/main/pkg/utils/html.go
190 Bytes
| package utils | |
| import "github.com/microcosm-cc/bluemonday" | |
| var htmlSanitizePolicy = bluemonday.StrictPolicy() | |
| func SanitizeHTML(s string) string { | |
| return htmlSanitizePolicy.Sanitize(s) | |
| } | |