wp_kses_attr Wordpress function


Description:

Removes all attributes, if none are allowed for this element.


Syntax:


Arguments:

(string) $element HTML element/tag
(string) $attr HTML attributes from HTML element to closing HTML element tag
(array) $allowed_html Allowed HTML elements
(array) $allowed_protocols Allowed protocols to keep


Return Type:

(string) Sanitized HTML element


Define At:

wp-includes/kses.php


Wordpress Reference URL:

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


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