To convert more characters to their equivalents, just use this function:
function print_processor($value) {
$whats_coming_out = array("]","[","!","\"","$","%","'","(",")","{","}","-
",";","\\","/","<",">","*","+",".",":","_","=","^","\,","|"," ","?");
$whats_going_in = array
("]","[","!",""","$","%","'","(",")","{","}","&
#45",";","\","/","<",">","*","+",".",":","_","=",
"^","‚","|"," ","?");
for ($i=0;$i<count($whats_coming_out);$i++) {
$value = str_replace ($whats_coming_out[$i], $whats_going_in[$i], $value);
}
return $value;
} |