add_filter('the_content', 'removelink_content',1);
operate removelink_content($content material="")
preg_match_all("#(.*?)#i",$content material, $matches);
$num = depend($matches[0]);for($i = 0;$i < $num;$i++)
$content material = str_replace($matches[0][$i] , $matches[2][$i] , $content material);
return $content material;
It really works, however I want to exclude some classes. That's, that the code works solely on posts that aren't in an excluded class.