It seems ridiculous (and a violation of DRY) to have to type the h
method all over the place in your view code to make it safe.
Has anyone come up with a clever workaround for this?
DHH (creator of Rails) agrees with you. Rails 3 will escape output by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With