package
0.7.7
Repository: https://github.com/go-enjin/be.git
Documentation: pkg.go.dev

# Functions

Clean unescapes any HTML entities after using Sanitize on the given input.
CleanRelativePath is the same as CleanRequestPath except the cleaned result is a relative file path (has no leading slash character).
CleanRequestPath splits the given path into segments, using StrictClean on each segment while reassembling the cleaned output as an absolute file path (has a leading slash character).
KebabRelativePath uses CleanRelativePath on the given string, splits it into path segments and renders each segment in kebab-cased format ie: KebabRelativePath("lowerCamel/CamelCased/snake_cased") == "lower-camel/camel-cased/snake-cased".
Sanitize uses bluemonday.UGCPolicy to sanitize the given input.
StrictClean is the same as Clean except it uses StrictSanitize on the given input.
StrictCleanKebabFile is the same as StrictCleanKebabValue except that it respects primary and secondary file extensions.
StrictCleanKebabValue uses StrictClean on the given string, replaces all slashes with dashes and renders the string in kebab-cased format.
StrictSanitize uses bluemonday.StrictPolicy to sanitize the given input.
TrimQueryParams truncates the given string at the first question mark character.