I'm trying to run javascript code from a textarea. At the beginning I though of using eval, according to this question, but according to the answers eval is not the best way for accomplishing this.
Later I found this question, which talks about many alternatives libraries I could use. I try some but the documentation wasn't so clear or the projects are death.
One of the only "solutions" I found is the js.js lib. But there's not documentation (or I don't get it how it works from the examples) explaining how to pass the code I have from the textarea to the lib.
Do you know a lib for doing this? Does the webworker will work? Any idea in how I can accomplish this?
Thanks