Function kses_attr
This function removes all attributes, if none are allowed for this element.
If some are allowed it calls kses_hair() to split them further, and then it
builds up new HTML code from the data that kses_hair() returns. It also
removes "<" and ">" characters, if there are any left. One more thing it
does is to check if the tag has a closing XHTML slash, and if it does,
it puts one in the returned code as well.
Parameters summary
type |
$element |
|
type |
$attr |
|
type |
$allowed_html |
|
type |
$allowed_protocols |
|
Return value summary
type
|
type
|