--
You received this message because you are subscribed to the Google
Groups "ror-es" group.
To post to this group, send email to ror...@googlegroups.com
To unsubscribe from this group, send email to
ror_es+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ror_es?hl=en
Rails no escala.
Para limpiar desde el lado del servidor podrías usar el sanitizer de Rails. Puede escribir en el modelo algo comoclass Post < ActiveRecord::Basedef sanitize_textself.text = ActionController::Base.helpers.sanitize self.text, :tags => %w(b i em a br strong p), :attributes => %w(href)endendde manera que sólo permites que existan etiquetas como b, i ,em, strong, a, y el único atributo permitido es href.
Tienes razon. No lo había pensado :)