Small XSS filtering

Added sanitizing and output filtering