public function Cleantalk::delCleantalkComment in Anti Spam by CleanTalk 8
Function deletes the comment Cleantalk.ru
Parameters
$message:
Return value
mixed
File
- src/
Cleantalk.php, line 528
Class
- Cleantalk
- Cleantalk class create request
Namespace
Drupal\cleantalkCode
public function delCleantalkComment($message) {
$message = preg_replace('/\\n\\n\\*\\*\\*.+\\*\\*\\*$/', '', $message);
// DLE sign cut
$message = preg_replace('/<br\\s?\\/><br\\s?\\/>\\*\\*\\*.+\\*\\*\\*$/', '', $message);
$message = preg_replace('/\\<br.*\\>[\\n]{0,1}\\<br.*\\>[\\n]{0,1}\\*\\*\\*.+\\*\\*\\*$/', '', $message);
return $message;
}