<?php
function ludou_code_escape( $incoming_comment ) {
$incoming_comment = htmlspecialchars($incoming_comment, ENT_QUOTES);
return $incoming_comment;
}
add_filter( 'comment_text', 'ludou_code_escape' );
add_filter( 'comment_text_rss', 'ludou_code_escape' );
<?php
function ludou_code_escape( $incoming_comment ) {
$incoming_comment = strip_tags($incoming_comment);
return $incoming_comment;
}
add_filter( 'comment_text', 'ludou_code_escape' );
add_filter( 'comment_text_rss', 'ludou_code_escape' );
<?php
echo strip_tags("Hello world!");
?>
以上就是安达网络工作室关于《WordPress 防止恶意评论的方法》的一些看法。更多内容请查看本栏目更多内容!
本文实例讲述了WordPress主动给文章增加nofollow属性的完成办法。分享给大家供大家参考。详细剖析如下: no...
more标签 这种办法应该是最灵敏的一种办法,操作也很简略,只要要你在编辑文章的时分拔出more标签 或许应用...
首先,你要在wp-content/plugins/下建设一个文件夹,文件夹的名字最好只由字母、数字、“-”和下...
1、登录QQ邮箱,点击右下角“浏览空间”,进入浏览空间。 2、进入浏览空间后,点击页面右上角&ld...
本文实例讲述了wordpress利用键盘左右键完成上下翻页的办法。分享给大家供大家参考。详细剖析如下: 利用键...
就在discuz地图插件公布后不久,百度终于面向世界上最驰名的WordPress公布了地图插件!援用百度民间的引见,...