Sha256: 5257f108e58413c7d23179431bc2e5a0bb5716a8eed85fde9c4b25514a3e9aa3
Contents?: true
Size: 496 Bytes
Versions: 84
Compression:
Stored size: 496 Bytes
Contents
module Onebox module Engine class MixcloudOnebox include Engine include StandardEmbed matches_regexp(/^https?:\/\/www\.mixcloud\.com\//) always_https def placeholder_html oembed = get_oembed escaped_src = ::Onebox::Helpers.normalize_url_for_output(oembed[:image]) "<img src='#{escaped_src}' height='#{oembed[:height]}' #{Helpers.title_attr(oembed)}>" end def to_html get_oembed[:html] end end end end
Version data entries
84 entries across 84 versions & 1 rubygems