echo preg_replace ('/\<code\>(.*?)\<\/code\>/isxe', "'<pre class=\"code\">'.htmlentities('$1').'</pre>'", $content);