- Preparing search index...
- The search index is not available
@techytools/fn
-
str_sanitize(str: string, __namedParameters?: {
allowChars: undefined | string;
allowUppercase: undefined | boolean;
}): string
-
Parameters
-
str: string
-
__namedParameters: {
allowChars: undefined | string;
allowUppercase: undefined | boolean;
} = {}
-
allowChars: undefined | string
-
allowUppercase: undefined | boolean
Returns string
Sanitize a string by removing all characters except letters, numbers, and the characters specified in
allowChars
.