Create a encodeForJSON() function
We should create a function to safely embed JSON on a webpage simular to to what https://github.com/yahoo/serialize-javascript accomplishes.
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 [email protected] 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?
https://phppot.com/php/php-json-encode-and-decode/#:~:text=In%20PHP%2C%20json_encode()%20is,reflect%20effects%20on%20encoding%20behavior.
or
https://github.com/yahoo/serialize-javascript
?