Tag Archives: codex

sanitize_user

Sanitize username stripping out unsafe characters.Removes tags, octets, entities, and if strict is enabled, will only keep alphanumeric, _, space, ., -, @. After sanitizing, it passes the username, raw username (the username in the parameter), and the value of $strict as parameters for the ‘sanitize_user’ filter.

2797

Continue reading

sanitize_title_with_dashes

Sanitizes title, replacing whitespace and a few other characters with dashes.Limits the output to alphanumeric characters, underscore (_) and dash (-). Whitespace becomes a dash.

2793

Continue reading

sanitize_title

Sanitizes title or use fallback title.Specifically, HTML and PHP tags are stripped. Further actions can be added via the plugin API. If $title is empty and $fallback_title is set, the latter will be used.

2791

Continue reading

sanitize_file_name

Sanitizes 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