Purifier icon indicating copy to clipboard operation
Purifier copied to clipboard

Purifier is removing tags other then "p" tag.

Open ghost opened this issue 4 years ago • 1 comments

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


'

ghost avatar Sep 08 '21 15:09 ghost

look for 'AutoFormat.AutoParagraph' => false, in app/purifier.php

jobindas82 avatar Mar 27 '22 12:03 jobindas82