$topictitle=mysql_result($result,$i,"title"); $cleantopictitle=htmlentities($topictitle); $cleantopictitle2=htmlspecialchars($topictitle); $cleantopictitle3=utf8_encode($topictitle);