app/models/concerns/sanitizable.rb
def sanitize_inputs
      attributes.each do |attr_name, attr_value|
        next unless attr_value.is_a? String
        self[attr_name] = strip_markup(attr_value).strip
      end
    end
# Strips HTML out of string properties from models on which this is called.
Strips HTML out of string properties from models on which this is called.
Strips HTML out of string properties from models on which this is called .
def sanitize_inputs
      attributes.each do |attr_name, attr_value|
        next unless attr_value.is_a? String
        self[attr_name] = strip_markup(attr_value).strip
      end
    end
def sanitize_inputs attributes . each do | attr_name , attr_value | next unless attr_value . is_a? String self [ attr_name ] = strip_markup ( attr_value ) . strip end end
Strips HTML out of string properties from models on which this is called.
Strips HTML out of string properties from models on which this is called .