mewebstudio / Purifier

HTMLPurifier for Laravel 5/6/7/8/9/10/11
MIT License
1.89k stars 230 forks source link

Purifier is removing tags other then "p" tag. #151

Open ghost opened 3 years ago

ghost commented 3 years ago

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


'

jobindas82 commented 2 years ago

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