That appears to be working correctly, so whats the issue?
$smallname = htmlspecialchars(CutName($row["name"], $char1));
replace with
$smallname = str_replace('&', '&', htmlspecialchars(CutName($row['name'], $char1)));
No users online
Torrents
Members
Online