Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



allowed_tags ›

Od1.0.1
Przestarzałyn/a
allowed_tags ( Brak parametrów )
Powrót:
  • (string) HTML allowed tags entity encoded.
Zdefiniowane na:
Codex:

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.



Źródło

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