Sha256: 8629c47c69755ded0a8e6fdde1349488796c2dbcfc80b116ef04d5dcc41dd06d
Contents?: true
Size: 335 Bytes
Versions: 37
Compression:
Stored size: 335 Bytes
Contents
# ~*~ encoding: utf-8 ~*~ class Gollum::Filter::Sanitize < Gollum::Filter def extract(data) data end def process(data) if @markup.sanitize doc = Nokogiri::HTML::DocumentFragment.parse(data) doc = @markup.sanitize.clean_node!(doc) doc.to_xml(@markup.to_xml_opts) else data end end end
Version data entries
37 entries across 37 versions & 2 rubygems