Module: Gitlab::Sanitizers::SVG

Defined in:
lib/gitlab/sanitizers/svg.rb,
lib/gitlab/sanitizers/svg/whitelist.rb

Defined Under Namespace

Classes: Scrubber, Whitelist

Class Method Summary collapse

Class Method Details

.clean(data) ⇒ Object


6
7
8
# File 'lib/gitlab/sanitizers/svg.rb', line 6

def self.clean(data)
  Loofah.xml_document(data).scrub!(Scrubber.new).to_s
end