lib/onebox/engine/google_maps_onebox.rb in onebox-1.7.3 vs lib/onebox/engine/google_maps_onebox.rb in onebox-1.7.4
- old
+ new
@@ -50,12 +50,12 @@
def to_html
"<div class='maps-onebox'>#{Helpers.click_to_scroll_div + "<iframe src=\"#{link}\" width=\"690\" height=\"400\" frameborder=\"0\" style=\"border:0\">#{placeholder_html}</iframe>"}</div>"
end
def placeholder_html
- width = @placeholder_width || 690
+ width = @placeholder_width || 690
height = @placeholder_height || 400
- "<img src=\"#{CGI.escapeHTML(@placeholder)}\" width=\"#{width}\" height=\"#{height}\"/>"
+ "<img src='#{@placeholder}' width='#{width}' height='#{height}'/>"
end
private
def data