No commit activity in last 3 years
No release in over 3 years
ActiveRecord: Simple filtering for html as validation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Please use text_filter instead class User < ActiveRecord::Base text_filter :name, :email, :with=>:strip_tags end

I do not use or maintain validates_exclusion_of_html any longer.

old README:

Simple filtering for html as validation. There are more complete and complex solutions out there, but this is simple/painless.

class User < ActiveRecord::Base
  validates_exclusion_of_html :name, :username
  validates_exclusion_of_html :firstname, :message=>'dont be evil...'
end

Only supports :message option for now (default message is 'must not include > or <')

###Install script/plugin install git://github.com/grosser/validates_exclusion_of_html.git OR sudo gem install grosser-validates_exclusion_of_html -s http://gems.github.com

Author

Michael Grosser
grosser.michael@gmail.com
Hereby placed under public domain, do what you want, just do not hold me accountable...