Tidy up HTML inside CDATA sections to ensure content is well-formed