Open ghost opened 3 years ago
I have two html editors. There values are something like $html1 = '
html1
html2
But when I purify them it result into only P tag.
echo(Purifier::clean($html1)); Output-> '
echo(Purifier::clean($html2)); Output-> '
look for 'AutoFormat.AutoParagraph' => false, in app/purifier.php
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
'