Codex tools: Log in
Removes all attributes, if none are allowed for this element.
If some are allowed it calls wp_kses_hair() to split them further, and then it builds up new HTML code from the data that wp_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.
<?php wp_kses_attr( $element, $attr, $allowed_html, $allowed_protocols ) ?>
wp_kses_attr() is located in