Running jQuery in Ruby
问题 I want to run jQuery in a Ruby application and use it to manipulate an HTML string. (Yes, I know there are other Ruby libraries that can handle that task, but I have a good reason for using jQuery in this case.) Is this possible? I know that I can use ExecJS to execute simple JavaScript code in my Ruby application, but jQuery doesn't seem to be working: irb(main):001:0> require 'execjs' => true irb(main):002:0> require 'open-uri' => true irb(main):003:0> context = ExecJS.compile(open("http:/