wp_filter_nohtml_kses()
wp_filter_nohtml_kses( string $data ) 从文本字符串中剥离所有HTML。 …
wp_filter_nohtml_kses( string $data )
从文本字符串中剥离所有HTML。
Strips all HTML from a text string.
目录锚点:#说明#参数#源码
说明(Description)
此函数需要斜杠数据。
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $data | (string) | 从中删除所有HTML的内容。 |
源码(Source)
/**
* 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' ) );
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 2.1.0 | wp-includes/kses.php | 9 | 3 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!