data/new/nokogiri.rb.erb in ronin-web-1.0.0.beta1 vs data/new/nokogiri.rb.erb in ronin-web-1.0.0.beta2
- old
+ new
@@ -2,10 +2,10 @@
require 'nokogiri'
require 'open-uri'
<%- if @url -%>
-doc = Nokogiri::HTML(URI.open(<%= @url -%>))
+doc = Nokogiri::HTML(URI.open(<%= @url.inspect -%>))
<%- else -%>
doc = Nokogiri::HTML(URI.open(ARGV[0]))
<%- end -%>
puts doc.search('//a[@href]')