Check your database it shouldn't be storing >. It must be & lt ; now for your situation you can use following statement to get the output value without converting into entity.
{{ htmlentities($user->name) }}
a shortcut to htmlentities($user->name) is to use the triple curly which routes the echo through the e() function in Laravel. {{{ $user->name }}}
However, did you actually check the database directly? If you are just echoing it out to the browser, then the problem is it is looking at the < and showing the value that means. So you'd need to actually store < in order to get the string to not be interpreted. However, you need to watch things like editing and updating, since can rear its head later if you aren't careful.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community