Added method to remove CDATA and newlines because newlines are unneccessary in the documentation, and CDATA tags are added by the .ftl templates