[Rails-core] Default <%= to use the h (html safe) method.

Obie Fernandez obiefernandez at gmail.com
Sun Feb 12 20:22:29 GMT 2006


> How is that operator different from <%=h my_string %>?
>
> Here's a suggestion: If you use html_escape more than regular output,
> bind your TextMate (or whatever editor) hotkey for ERb outputs to
> include the h by default. That'd be a very Less Software approach to
> doing the same.


Point taken. I think I'll actually make a hotkey like that. I always
forget otherwise.

Obie


More information about the Rails-core mailing list