ごめん、文字が勝手に変換された。
$trans = array ("&gt;" => ">", "&lt;" => "<");
$text = strtr($text, $trans);