WordPress at a glance
function is not described

allowed_tags() WP 1.0.1

Display all of the allowed tags in HTML format with attributes.

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.

  • Global. Array. $allowedtags

No Hooks.

Return

String. HTML allowed tags entity encoded.

Usage

allowed_tags();

Code of allowed tags: wp-includes/general-template.php VER 5.0.3

<?php
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 );
}