There is still some resistance on the framework to the usage of Nokogiri for parsing untrusted input because of old XXE issues. Normally we recommend the usage of REXML for parsing untrusted XML, but in this case you're dealing with HTML, so I guess using REXML maybe is not possible here, not sure if you tried. The other option would be to use regexs, if possible, to parse the response. It, absolutely, would help to accelerate landing.