No matter what I do, what docs I read, what custom scripts I try, I cannot get TinyMCE to remove ALL inline styles and delete empty tags.
<h1> </h1>
<li style="font-weight: 400;" aria-level="1"><span style="font-weight: 400;">Lorem Ipsum</span></li>
<p> </p>
I want it to do what html-cleaner.com does upon paste, which leaves you with perfectly clean HTML. If you copy the TinyMCE html result into that site, you'll get this result:
<h1><strong>Title</strong></h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
<h3><strong>Lorem Ipsum is simply dummy text</strong></h3>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p>
<ul>
<li>Lorem Ipsum is simply dummy tex</li>
<li>he industry's standard dummy text ever since the 1500s</li>
<li>when an unknown printer took </li>
</ul>
<p>Tt to make a type specimen book. It has survived not only five centuries, but also the leap into ele</p>
<h3><strong>Simply dummy text of the </strong></h3>
<p>Readable English. Many desktop publishing packages</p>
<ul>
<li>Lorem</li>
<li>Ipsum</li>
</ul>
What am I doing wrong?