public static function CleantalkFuncs::_cleantalk_filter_response in Anti Spam by CleanTalk 7.4
Same name and namespace in other branches
- 7.5 src/CleantalkFuncs.php \CleantalkFuncs::_cleantalk_filter_response()
Cleantalk inner function - performs CleanTalk comment|errstr filtering.
1 call to CleantalkFuncs::_cleantalk_filter_response()
- CleantalkFuncs::_cleantalk_check_spam in src/
CleantalkFuncs.php - Cleantalk inner function - performs antispam checking.
File
- src/
CleantalkFuncs.php, line 727
Class
- CleantalkFuncs
- Cleantalk class create request
Code
public static function _cleantalk_filter_response($ct_response) {
if (preg_match('//u', $ct_response)) {
$err_str = preg_replace('/\\*\\*\\*/iu', '', $ct_response);
}
else {
$err_str = preg_replace('/\\*\\*\\*/i', '', $ct_response);
}
return filter_xss($err_str, array(
'a',
));
}