inossidabile / styx

Set of helpers to maintain bridge between Server (Rails) side and Client (JS) side

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double quotes are escaped when pass data with styx_initialize_with

nbeloglazov opened this issue · comments

When I try to pass any data to javascripti, quotes are escaped with " so javascript becomes invalid.
See gist:
https://gist.github.com/65fc2dfad971b58224c4
It contains controller code, generated javascript and possible fix.