Santizes 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 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 readingSanitizes a bookmark fieldSanitizes the bookmark fields based on what the field name is. If the field has a strict value set, then it will be tested for that, else a more generic filtering is applied. After the more strict filter is applied, if the $context is ‘raw’ then the value is immediately return.
2761
Continue reading
sanitize_comment_cookies
Sanitizes the cookies sent to the user already.Will only do anything if the cookies have already been created for the user. Mostly used after cookies had been sent to use elsewhere.
2767
Continue reading →