I am currently in the process of redesigning a website for a client. The site is already built using Joomla 1.7, but I am facing an issue with the articles section that was created by the client using a WYSIWYG editor. The problem lies in the messy code structure, containing numerous empty tags such as:
<p></p>
<p> </p>
and even:
<p><span style="color: #008000;"><span style="font-size: medium;"><strong> </strong></span></span></p>
Is there a way to clean up this code using JavaScript or CSS? Or should I not worry about it since I have no control over how the client uses the editor?
UPDATE: I found a solution provided by kitgui.com - you can try out their plugin at http://code.google.com/p/jquery-clean/ - it works wonders.