title: Turn emoji into Javascript Encoding?
body: <p>Is there any function or something that I can use to convert an emoji or something into the Javascript Encoding equivalent? For example, if I have a variable that contains "", I want to be able to convert it to its corresponding javascript encoding, like "\ud83d\udc4d". Any way this can be accomplished?</p>