Sanitize a string from user input or from the dbcheck for invalid UTF-8, Convert single < characters to entity, strip all tags, remove line breaks, tabs and extra white space, strip octets.
2789
Continue readingSanitize a string from user input or from the dbcheck for invalid UTF-8, Convert single < characters to entity, strip all tags, remove line breaks, tabs and extra white space, strip octets.
2789
Continue readingCleanse the field value in the term based on the context.Passing a term field value through the function should be assumed to have cleansed the value for whatever context the term field is going to be used.
2787
Continue readingSanitize post field based on context.Possible context values are: ‘raw’, ‘edit’, ‘db’, ‘display’, ‘attribute’ and ‘js’. The ‘display’ context is used by default. ‘attribute’ and ‘js’ contexts are treated like ‘display’ when calling filters.
2781
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 reading