Pads the text following newlines with the specified indent amount so that the text is indented.
Converts newlines into the XML entity: 
 so that multiple lines encode to a sinle long HTML source line but still render in browser as multiple lines.
Escapes any XML special characters.