Fixing #text and #cdata section outputs