The internet is not safe. It never will be. We will always have trolls and spammers, but even worse: Hackers. Luckily, you can fight these as a webmaster. The most common reason how your website gets hacked, is via user input that gets displayed. I'll show you how to avoid this with a fairly simple script.