mathiasbynens / he

A robust HTML entity encoder/decoder written in JavaScript.
https://mths.be/he
MIT License
3.43k stars 255 forks source link

Syntax error in both Firefox and Chrome #59

Closed arvindpdmn closed 6 years ago

arvindpdmn commented 6 years ago

Try to use this at client side. Console throws up an error.

Firefox: SyntaxError: expected expression, got '<'[Learn More] he.js:32:17

Chrome: Uncaught SyntaxError: Unexpected token < h2.js:32

mathiasbynens commented 6 years ago

You’re using src/he.js instead of he.js.

arvindpdmn commented 6 years ago

Thanks.