api.rb
def extract_background_image(node)
  begin
    ENDPOINT + node.styles['background-image'][/url\((.+)\)/, 1].gsub("'", '').strip
  rescue
    nil
  end
end
#Extract background image from inline styles.
Extract background image from inline styles.
Extract background image from inline styles .
def extract_background_image(node)
  begin
    ENDPOINT + node.styles['background-image'][/url\((.+)\)/, 1].gsub("'", '').strip
  rescue
    nil
  end
end
def extract_background_image ( node ) begin ENDPOINT + node . styles [ 'background-image' ] [ / url \( (.+) \) / , 1 ] . gsub ( "'" , '' ) . strip rescue nil end end
Extract background image from inline styles.
Extract background image from inline styles .
node