Sha256: 23aaeb101a3f6c9aaa7043d934278e74d8fbfe2db45be8d5dd32864d7320abbb
Contents?: true
Size: 318 Bytes
Versions: 42
Compression:
Stored size: 318 Bytes
Contents
# frozen_string_literal: true module Thredded module HtmlPipeline # Wraps iframes with a <div class="thredded--embed-16-by-9"/> class WrapIframesFilter < ::HTML::Pipeline::Filter def call doc.css('iframe').wrap('<div class="thredded--embed-16-by-9"/>') doc end end end end
Version data entries
42 entries across 42 versions & 2 rubygems