We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html raw content :
<p style="text-align:center;"><img src="/data/image/2017/07/22/28875_hytv_8742.png" alt="28875_hytv_8742.png" class="w-e-selected" style="max-width:30%;"><br></p>
after clean filter :
clean( $content, [ 'HTML.Allowed' => 'b,strong,i,em,u,a[href|title],ul,ol,li,p[style],br,span[style],img[style|width|height|alt|src],span,br,h1,h2,h3,h4,h5', ] );
the result :
<p style="text-align:center;"><img src="/data/image/2017/07/22/28875_hytv_8742.png" alt="28875_hytv_8742.png" /><br /></p>
environment: Laravel 5 HtmlPurifier Package package : mews/purifier version : v2.0.8
The text was updated successfully, but these errors were encountered:
I have found the solution.
clean($content, [ 'HTML.Allowed' => 'b,strong,i,em,u,a[href|title],ul,ol,li,p[style],br,span[style],img[style|width|height|alt|src],span,br,h1,h2,h3,h4,h5,blockquote', 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align,max-width,border,width', 'AutoFormat.AutoParagraph' => true, 'AutoFormat.RemoveEmpty' => true, 'CSS.MaxImgLength' => null, ]);
Sorry, something went wrong.
No branches or pull requests
html raw content :
after clean filter :
the result :
environment:
Laravel 5 HtmlPurifier Package
package : mews/purifier
version : v2.0.8
The text was updated successfully, but these errors were encountered: