I have the following function:
// convert characters to html
function convertstring($string) {
// variables
$search = array("~","`","!","@","#","\$","%","^","&","*","(",")","_","-","+","=","{",
"[","}","]","|","\\",":",";",'"',"'","<",",",">",".","?","/");
$replace =...