<?php $string = '<p > ¡Esto es una prueba! < /p > <p> <strong > Prueba 123 </strong> </p> <p> <strong> < a href="https://matricom.net"> MATRICOM < / a> </ strong> </p> <p> <strong > Todas las pruebas aquí ... </strong > < /p>'; echo preg_replace('~<\K\s*(?:(/)\s+)?|\s+(?=>)~u', '$1', $string);
You have javascript disabled. You will not be able to edit any code.