fix broken xml display

XML tags were not properly escaped in the browser if the xml had more than 1 line.
The patch fixes this, xml is displayed properly now.