Aded XSS safety
Added HttpFoundation component