bbp_get_allowed_tags()

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

Description

This is useful for displaying in the post 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: bp-forums/common/template.php

	function bbp_get_allowed_tags() {

		$allowed = '';

		foreach ( (array) bbp_kses_allowed_tags() as $tag => $attributes ) {
			$allowed .= '<' . $tag;
			if ( 0 < count( $attributes ) ) {
				foreach ( array_keys( $attributes ) as $attribute ) {
					$allowed .= ' ' . $attribute . '=""';
				}
			}
			$allowed .= '> ';
		}

		return apply_filters( 'bbp_get_allowed_tags', htmlentities( $allowed ) );
	}

Changelog

Changelog
Version Description
bbPress (r2780) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.