m4dc4p wrote:
> What about something where you subclass any strings coming out of
> 'self[]'? This is some real quick and dirty pseudo code but you could
> do:
> 
> This way, any time a string comes out of an ActiveRecord column, you
> override it to automatically product safe HTML. If you don't want that
> behavior, you just call unsafe_to_s.

Perfect, safe by default is what is needed.

-- 
Posted via http://www.ruby-forum.com/.