lib/onebox/engine/image_onebox.rb in onebox-1.9.20 vs lib/onebox/engine/image_onebox.rb in onebox-1.9.21
- old
+ new
@@ -16,10 +16,9 @@
if @url[/^https:\/\/www.dropbox.com\/s\//]
@url.sub!("https://www.dropbox.com", "https://dl.dropboxusercontent.com")
end
escaped_url = ::Onebox::Helpers.normalize_url_for_output(@url)
-
<<-HTML
<a href="#{escaped_url}" target="_blank" class="onebox">
<img src="#{escaped_url}">
</a>
HTML