Support the ongoing development of Laravel.io →
Security Input
Last updated 2 years ago.
0

You can't. If you want to allow html, use http://www.php.net/strip_tags

Last updated 2 years ago.
0

I understand that using strip_tags will allow me to pass in second parameter so i can whitelisting some html entities but will it by default (without passing any whitelisting parameter) sanitize everything just like e() ?

Last updated 2 years ago.
0

Strip_tags strips the tags, htmlentities converts the html tags, so you can read the tags, but they aren't parsed as HTML. So they are not the same.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

imchivaa imchivaa Joined 19 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.