Method: HTML::Pipeline::HttpsFilter#call
- Defined in:
- lib/html/pipeline/https_filter.rb
#call ⇒ Object
9 10 11 12 13 14 |
# File 'lib/html/pipeline/https_filter.rb', line 9 def call doc.css(%Q(a[href^="#{http_url}"])).each do |element| element['href'] = element['href'].sub(/^http:/,'https:') end doc end |