Sha256: 078dc352621118169962d7fd80d82afdad85a5d8a3802a99a3e7c86dc4212201

Contents?: true

Size: 217 Bytes

Versions: 3

Compression:

Stored size: 217 Bytes

Contents

# frozen_string_literal: true

module CircleOrbit
  class Utils
    def self.sanitize_body(body)
      body = ActionView::Base.full_sanitizer.sanitize(body)

      body&.gsub!("\n", " ")

      body
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
circle_orbit-0.2.0 lib/circle_orbit/utils.rb
circle_orbit-0.1.0 lib/circle_orbit/utils.rb
circle_orbit-0.0.2 lib/circle_orbit/utils.rb