Archive | /wp-includes/formatting.php RSS feed for this section

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_text_field

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 reading

sanitize_sql_orderby

Ensures a string is a valid SQL order by clause.Accepts one or more columns, with or without ASC/DESC, and also accepts RAND().

2783

Continue reading

sanitize_option

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 reading