# File lib/capybara-screenshot/rspec/html_link_reporter.rb, line 24 def link_to_screenshot(title, path) url = URI.escape("file://#{path}") title = CGI.escape_html(title) attributes = attributes_for_screenshot_link(url).map { |name, val| %{#{name}="#{CGI.escape_html(val)}"} }.join(" ") "<a #{attributes}>#{title}</a>" end