Do not replace \n really.
Edit was not working properly, the &#x000A; string was escaped again and became &amp;#x000A;