How to make a string safe for display in php

Submitted by drunkenfury » 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.
Rating: 3.0/5 | 278 clicks | 0 comments | 0 saves | share | report

Additional statistics

Average rating: 3.00/5.0
Clicks today: 2
Clicks this month: 278
Clicks total: 278
Number of comments: 0
Number of saves: 0