Acts As Stripped plugin

Plugin details

Strips HTML out of an attribute whenever it's displayed - even if it's in a form input box/textarea.

Websitehttp://offtheline.net/2007/6/14/acts-as-stripped-auto-stripping-html-from-a-field Repositoryhttp://svn.offtheline.net/plugins/acts_as_stripped/ Tags form, HTML LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.offtheline.net/plugins/acts_as_stripped/

Use like so:

class SomeModel < ActiveRecord::Base
  acts_as_stripped :name, :description
	
	# ...
end



If you need to get the unstripped value, you can always use:

your_model.attributes["att_name"]

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: Guest, 8 months ago