puppetlabs/puppet-acceptance — pull request #211 by justinstoller (2012-05-11 06:56:07+00:00)
Title: (maint) escape the escape character, dont use regexes that dont do anything

Prior to this the junit writer method was using a gsub to match special characters that could give xml issues in stdout and stderr streams. Unfortunately the regexes being used didn't actually match anything and Rexml does a pretty good job of escaping invalid character entities.

It doesn't escape however the 'escape character', which can also show up in 'failure' elements' message attribute. This removes escape characters from stdout, stderr and failure:message.