I have a <textarea>
which I want to use as a Ruby code editor on my HTML web page. I want to run the Ruby code using Javascript and use a <div>
with an ID of output
as a command line in an <iframe>
to output the results of the Ruby code, just like Codecademy.
Also, I would like to find a way to do this securely so it doesn't compromise the security of my server. I can only use PHP and Node.JS.