Cleaning HTML input?
Hi all,
I'm getting deeper into Laravel and I'm just working out how best to work with user Entered HTML.
For example, I'm offering a WYSIWYG (in this case Redactor) to user so they can add tags to their content - the usual suspects like image links, h tags, ul, ol etc
However obviously I don't want them to be able to insert script tags, style tags etc and just have the basics.
Is there something within the Laravel core or a good package that can be used for this purpose? I.E allowing HTML to be stored and output safely?
Traditionally when just building PHP stuff before Laravel I've used HTMLPurify and I'm aware there is a package floating around for it for Laravel, but I wanted to see if I'm missing something simple within the core itself?
Many thanks!
Please or to participate in this conversation.