Hello everyone. What system dependencies does nokogiri have at runtime? For example, I know it needs libxml2/libxslt to compile native extensions, but do those libraries still need to be available at runtime?
Context: I'm making a bare-bones docker image for running a rails app, and I'm scrutinizing every system dependency to determine if it's really necessary at runtime.
When doing the following:
Nokogiri::HTML.fragment("<a href='https://foo.com?a=1&b=2").to_s # => "<a href=\"https://foo.com?a=1&b=2\"></a>"
in the output, the ampersand is escaped
a[href]s in the document and altering the URLS)
Nokogiri::HTML("<a href='https://foo.com'>foo</a>").search("//a").each do |n| n.attributes["href"].value = "https://foo.com?q=a&x=y" end.to_s
&is expanded into
&amp;in this example