Reputation: 955
I'm using Rails 3. When a user submits a form with a text_field and has & entered in it, the form gets validated. When it isn't valid, Rails returns an error, which I then show to the user. But now the & is translated to &
. How can I change this behaviour? Thanks.
Upvotes: 6
Views: 2610
Reputation: 955
I found the culprit. I was sending my input to a sanitizer method, which replaced all ampersands by &
.
Upvotes: 4