0

Rails 3+ has automatic XSS prevention. Can I get the same thing in Padrino, and if so, how?

François Beausoleil
  • 16,265
  • 11
  • 67
  • 90

1 Answers1

1

Sure, if you are using Slim for example is turned on by default

== 'this is not escaped'
= 'this is escaped'
DAddYE
  • 1,719
  • 11
  • 16
  • What about erubis? I do it as sinatra FAQ page: `Sinatra::Base.set :erubis, :escape_html => true`, but it does't work for padrino. – Hooopo Jan 14 '13 at 07:46