-
Notifications
You must be signed in to change notification settings - Fork 350
Open
Description
Why are image style height percentage stripped but not for pixels?
Input
<img class="img-fluid" src="/storage/uploads/abc.jpeg" alt="abc.jpeg" style="width: 25%;">
Output
<img class="img-fluid" src="/storage/uploads/abc.jpeg" alt="abc.jpeg">
I've configured my settings as follows, including style within img[]
'HTML.Allowed' => 'div,b,strong,i,em,u,a[href|title],ul,ol,li,p[style],br,span[style],img[width|height|alt|src|class|style]',
If I pass the height and width as pixels, it works as expected.
Thanks
Metadata
Metadata
Assignees
Labels
No labels