
如何使用Adminer通过单个PHP文件轻松管理数据库
allowed_tags ( No parameters )
allowed_tags: 这是一个WordPress的函数,它返回一个允许的HTML标签和属性数组,用于wp_kses函数。
以HTML格式显示所有允许的标签和属性。
这对在评论区显示哪些元素和属性是支持的很有用。以及任何想要显示它的插件。
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 ); }