You can customize Rail's builtin sanitation by setting
config.action_view.sanitized_allowed_tags and such in your
environment.rb:
config.action_view.sanitized_allowed_tags %w[ list of additional html
tags to allow ]
You can do the similar with
config.action_view.sanitized_allowed_attributes,
sanitized_allowed_css_properties, and sanitized_allowed_css_keywords.
However, this is 1) fairly inflexible, as it affects the operation of
all sanitize() calls, and 2) sanitize uses Ruby Tokenizer, which is
slow. You might be better off looking into the Hpricot based Sanitize
gem (
http://wonko.com/post/sanitize); however I myself haven't yet
used it, and it looks like its only geared toward HTML so I don't know
if it's able to sanitize css attributes.