allowed_tags()

最后更新于:2021-11-25 19:47:00

allowed_tags()

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

响应

(string) HTML allowed tags entity encoded.

源文件

文件: gc-includes/general-template.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 );
}