Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (43 sloc) 0.946 kb
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="x-js-quote.xsl"?>
<tests url="test.xml" name="x:js-quote">
<test>
<source>"</source>
<result>'"'</result>
</test>
<test>
<source>'</source>
<result>'\''</result>
</test>
<test>
<source>--</source>
<result>'-\-'</result>
</test>
<test>
<source>abc----def</source>
<result>'abc-\-\-\-def'</result>
</test>
<test>
<source>\\</source>
<result>'\\\\'</result>
</test>
<test>
<source>
</source>
<result>'\n'</result>
</test>
<test>
<source>&#13;&#10;&#13;&#10;</source>
<result>'\n\n'</result>
</test>
<test>
<source>&#13;&#13;</source>
<result>'\n\n'</result>
</test>
<test>
<source>Blah "blah"
blah
</source>
<result>'Blah "blah"\nblah\n'</result>
</test>
</tests>
Jump to Line
Something went wrong with that request. Please try again.