I found the solution here by Hissatsu . You can use encode to convert XML to US-ASCII.

For example:

<p>I do not want to show this content.</p>

However, if you encode multiple lines, you’ll find …