目录
描述
用法
<?php wp_filter_nohtml_kses( $data ) ?>
参数
返回值
历史
添加于 版本: 2.1.0
源文件
wp_filter_nohtml_kses() 函数的代码位于 wp-includes/kses.php
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
/* ---------------------------------- * wordpress之魂 © http://wphun.com * ---------------------------------- */ /** * Strips all of the HTML in the content. * * @since 2.1.0 * * @param string $data Content to strip all HTML from * @return string Filtered content without any HTML */ function wp_filter_nohtml_kses( $data ) { return addslashes( wp_kses( stripslashes( $data ), 'strip' ) ); } |
- 原文:http://codex.wordpress.org/Function_Reference/wp_filter_nohtml_kses
- 翻译:黄聪@WordPress之魂