safeAttr = function (str) {
                return str
                    .replace(/&/g, '&amp;')
                    .replace(/</g, '&lt;')
                    .replace(/>/g, '&gt;')
                    .replace(/"/g, '&quot;');
            }
Format test results as JUnit XML for CI
@see: http://www.junit.org/
@param {Array} tests the arrays containing the test results from testResults.
@return {Object}:
   failures: {Number} total test failed,
   content: {String} the results as JUnit XML text