-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avoid double and tripple xUnit XML escaping #2178
avoid double and tripple xUnit XML escaping #2178
Conversation
Otherwise the title gets triple escaped and the error gets double escaped <testcase classname="ex-name" name="should do a thing" time="0.12"><failure><![CDATA[(a =&gt; b + &quot;c&quot;); failed
Error: (a => b + "c");
at Object.<anonymous> (./foo.js:80:19)]]></failure></testcase>
</testsuite> |
@danielstjules bump |
@dasilvacontin bump |
*/ | ||
|
||
function cdata(str) { | ||
return '<![CDATA[' + escape(str) + ']]>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did the CDATA
tag go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d053a37
to
c7074c4
Compare
Okay, without the Otherwise LGTM. But hopefully we can get a reply soon. |
Will locally rebase && test in a few hours and merge if all is good. |
Sauce passed when ran from local. Merging. Thanks @graingert! :) |
Sweet do you know when this will get a release? |
@graingert Now available on npm. ;) (v2.5.2) |
No description provided.