Closed Hadrien-DELAITRE closed 8 years ago
Why are you replacing string when it's not a tag : https://github.com/MrSwitch/esi/blob/master/src/esi.js#L70
tag
In my htmlString, I have other script containing such characters as : function _callee$(_context) {. They are replaced by : function _callee {.
function _callee$(_context) {
function _callee {
Obviously when my page is served client side, javascript fails.
If you want to remove that. Check the test script is successful. Then create a PR. Thanks
Thanks, just released npm i esi@* --save-dev
npm i esi@* --save-dev
Why are you replacing string when it's not a
tag
: https://github.com/MrSwitch/esi/blob/master/src/esi.js#L70In my htmlString, I have other script containing such characters as :
function _callee$(_context) {
. They are replaced by :function _callee {
.Obviously when my page is served client side, javascript fails.