wanasit / enml-js

Evernote's ENML library in Javascript
MIT License
103 stars 25 forks source link

Entity encoding issues #15

Open mjmasn opened 9 years ago

mjmasn commented 9 years ago

This library does not appear to be encoding entities correctly, for example with ampersand &, it will only encode the first occurrence.

&& -> && && -> && &&& -> &&&

The expected values for the three examples would be &&, &&, and &&&. Passing a mixture of encoded and non-encoded ampersands to the Evernote API returns an error.

screenshot from 2015-02-06 10 37 34