IDEA-123141 Refactor / Rename erroneously wraps xml element content in CDATA when it already exists, and corrupts text content if two occurrences

(cherry picked from commit 50e411e040086ac6597426d820e4a160eb5d6ba4)