]*>.*?
(?:\s*]*>\s*
)*~si', static function (array $match): string { $text = html_entity_decode(strip_tags($match[0]), ENT_QUOTES | ENT_HTML5, 'UTF-8'); $text = preg_replace('/\s+/u', '', $text); if (preg_match('/点击加入我们的(?:tg|telegram)频道|点击关注我们的github仓库/iu', $text)) return ''; return $match[0]; }, $html); } }