Fix XSS Vulnerability

Not sure if htmlsafe() is declared or not, if it is not then make sure to include 'include/functions.php'
Merge pull request #136 from KyraD/patch-1

Fix XSS Vulnerability