How to disable   automatic removal from p and div tags that have no text? Below is an example:
<p> </p> => <p></p>
<div> </div> => <div></div>
If the tag has text, this does not happen:
<p>text </p> => <p>text </p>
<div>text </div> => <div>text </div>
This situation does not occur with the <span> tag:
<span> </span> => <span> </span>