I want to remove the auto <p> and </p>
inside my comment in wordpress.
I can use
remove_filter( 'comment_text', 'wpautop', 30 );
But it also remove the <br>
🙁
What is the correct way to keep the <br>
to not being removed?
Thank you for any help.
You can just use PHP’s
nl2br
in place of WordPress’wpautop
.