sanitize_html_class Wordpress function


Description:

Sanitizes an HTML classname to ensure it only contains valid characters.


Syntax:


Arguments:

(string) $class The classname to be sanitized
(string) $fallback Optional. The value to return if the sanitization end's up as an empty string. Defaults to an empty string.


Return Type:

(string) The sanitized value


Define At:

wp-includes/formatting.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/sanitize_html_class


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×