Module: HtmlTerminator::InstanceMethods

Defined in:
lib/html_terminator.rb

Instance Method Summary collapse

Instance Method Details

#terminate_htmlObject



60
61
62
63
64
65
66
67
68
# File 'lib/html_terminator.rb', line 60

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