scrapinghub / js2xml

Convert Javascript code to an XML document
MIT License
186 stars 23 forks source link

Support string quoting with ` #34

Open Gallaecio opened 4 years ago

Gallaecio commented 4 years ago

I’ve seen strings quoted with `, and web browser consoles seem to interpret them as valid quoting characters for strings, but js2xml considers them invalid characters.

For example:

    var a = `asdf`;
Gallaecio commented 4 years ago

It looks like this is called “template literals”. We should make sure this works once https://github.com/calmjs/calmjs.parse/pull/15 is merged upstream.