Sanitises various option values based on the nature of the option.This is basically a switch statement which will pass $value through a number of functions depending on the $option.
2777
Continue readingSanitises various option values based on the nature of the option.This is basically a switch statement which will pass $value through a number of functions depending on the $option.
2777
Continue readingSanitize a string key.Keys are used as internal identifiers. Lowercase alphanumeric characters, dashes and underscores are allowed.
2775
Continue readingSantizes a html classname to ensure it only contains valid charactersStrips the string down to A-Z,a-z,0-9,_,-. If this results in an empty string then it will return the alternative value supplied.
2773
Continue readingSanitizes a filename replacing whitespace with dashesRemoves special characters that are illegal in filenames on certain operating systems and special characters requiring special escaping to manipulate at the command line. Replaces spaces and consecutive dashes with a single dash. Trim period, dash and underscore from beginning and end of filename.
2771
Continue reading