allowed_tags(): string
Displays all of the allowed tags in HTML format with attributes.
Description
This is useful for displaying in the comment area, which elements and attributes are supported. As well as any plugins which want to display it.
Return
string HTML allowed tags entity encoded.
Source
File: wp-includes/general-template.php
.
View all references
function allowed_tags() {
global $allowedtags;
$allowed = '';
foreach ( (array) $allowedtags as $tag => $attributes ) {
$allowed .= '<' . $tag;
if ( 0 < count( $attributes ) ) {
foreach ( $attributes as $attribute => $limits ) {
$allowed .= ' ' . $attribute . '=""';
}
}
$allowed .= '> ';
}
return htmlentities( $allowed );
}
Changelog
Version | Description |
---|---|
4.4.0 | No longer used in core. |
1.0.1 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Display allowed HTML tags
Output: