Class: CircleOrbit::Utils

Inherits:
Object
  • Object
show all
Defined in:
lib/circle_orbit/utils.rb

Class Method Summary collapse

Class Method Details

.sanitize_body(body) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/circle_orbit/utils.rb', line 5

def self.sanitize_body(body)
  body = ActionView::Base.full_sanitizer.sanitize(body)

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

  body
end