Chron
2 months ago
156
0
Laravel

html purifier not working

Posted 2 months ago by Chron

I'm using mewebstudio/purifier package

I have this in config/purifier.php

'HTML.Allowed'             => 'div,b,strong,i,em,u,ul,ol,li,p[style],br,span[style],img[width|height|src|style]',

As you can see, the img doesn't have alt, but the alt is still there when I die and dump the output. Is there a way to fix this?

Please sign in or create an account to participate in this conversation.