Open jmanico opened 4 years ago
This would be a great feature as we have needed something similar in the past.
Can I try this?
Go for it :)
-- Jim Manico @Manicode
On Jan 16, 2021, at 3:19 AM, Akshay Mall notifications@github.com wrote:
Can I try this?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
@jmanico Can u give any pointers from where I can start studying for this?
Maybe this will point you in the right direction?
or
https://github.com/yahoo/serialize-javascript
?
Wouldn't Encode.forJavaScriptSource()
work? You would just be responsible for quoting the output.
We should create a function to safely embed JSON on a webpage simular to to what https://github.com/yahoo/serialize-javascript accomplishes.