Purifier
Purifier copied to clipboard
Purifier is removing tags other then "p" tag.
I have two html editors. There values are something like $html1 = '
html1
'; $html2 = '
html2
';
But when I purify them it result into only P tag.
echo(Purifier::clean($html1)); Output-> '
html1
' Required output->'html1
'
echo(Purifier::clean($html2)); Output-> '
html2
' Required output->'
html2
'
look for 'AutoFormat.AutoParagraph' => false, in app/purifier.php