Stop Wordpress Editor Removing Invalid HTML

Add to functions.php A little more specific – allow empty tags if they have an id, name, class or style attribute: