Module: HtmlTerminator::InstanceMethods

Defined in:
lib/html_terminator.rb

Instance Method Summary collapse

Instance Method Details

#terminate_htmlObject



65
66
67
68
69
70
71
72
73
# File 'lib/html_terminator.rb', line 65

def terminate_html
  self.html_terminator_fields.each do |field, options|
    value = self[field]

    unless value.nil?
      self[field] = HtmlTerminator.sanitize(value, options)
    end
  end
end