I am using Laravel 4 with Eloquent.
When I get the user input I just use $name=Input::get('name')
and then I do $a->name=$name;
I don't know if the function Input::get
protect me from SQL Injection and XSS. If it does not, what do I have to do to sanitize the input?
And, when I show the value in my view, shall I use {{$a}}
or {{{$a}}}