convert $title and $th special characters to HTML