No importa lo que haga, qué documentos leo, qué scripts personalizados pruebo, no puedo hacer que TinyMCE elimine TODOS los estilos en línea y elimine las etiquetas vacías.
<h1> </h1> <li style="font-weight: 400;" aria-level="1"><span style="font-weight: 400;">Lorem Ipsum</span></li> <p> </p> Quiero que haga lo que hace html-cleaner.com al paste , lo que te deja con HTML perfectamente limpio. Si copia el resultado html de TinyMCE en ese sitio, obtendrá este resultado:
<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>¿Qué estoy haciendo mal?