lib/onebox/engine/google_calendar_onebox.rb in onebox-1.8.33 vs lib/onebox/engine/google_calendar_onebox.rb in onebox-1.8.34
- old
+ new
@@ -6,10 +6,10 @@
matches_regexp /^(https?:)?\/\/((www|calendar)\.google\.[\w.]{2,}|goo\.gl)\/calendar\/.+$/
always_https
def to_html
url = @url.split('&').first
- escaped_src = ::Onebox::Helpers.normalize_url_for_output(url)
+ src = ::Onebox::Helpers.normalize_url_for_output(url)
"<iframe src='#{src}&rm=minimal' style='border: 0' width='800' height='600' frameborder='0' scrolling='no'>#{placeholder_html}</iframe>"
end
def placeholder_html
<<-HTML