Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Plugins by

In qa-plugin/wysiwyg-editor/qa-wysiwyg-editor.php what is line 217 doing:

$htmlformatting=preg_replace('/<\s*\/?\s*(br|p)\s*\/?\s*>/i', '', $html); // remove <p>, <br>, etc... since those are OK in text

I am not good at regular expressions... is it really removing <p> and <br> tags from the content? And why actually?

Please log in or register to answer this question.