use PrintEscapedString to handle attribute section with escapes in it,