Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
allowed_tags() - 以带有属性的HTML格式显示所有允许的标签 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / allowed_tags()

allowed_tags()

以带有属性的HTML格式显示所有允许的标签


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 2 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "15fa1e388482fb7f2250a8ac8d637c44" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "a935db3d255e17450f4b387b9565b626" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

allowed 允许

tagmore...


描述

这对于在评论区域中显示支持哪些元素和属性很有用。以及任何想要显示它的插件。


返回

(string) HTML允许标签实体编码。


Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 92

源码

查看源码 官方文档


更新日志

版本描述
1.0.1开始引入

使用示例

  • 示例1

    显示允许的HTML标记

    $allowed_html_tags = allowed_tags();
    echo $allowed_html_tags;
    

    输出:

    <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>