Added XML content escaping