I’ve traced the problem down to an observe_field. The value being sent
by the AJAX call is 'A ’ - the ‘&B’ isn’t sent, as one would expect. So,
how can I escape the value to send the ‘&’ as an ‘&’? I’ve tried
‘:method => post’ but that doesn’t help either.
I know that the function h(string) strips a string and converts all
escape characters into their html-code equivalents.
so:
h “A & B”
will return “A & B”
or
h “A < B”
returns “A < B”
I hope this helps, it’s one of the few things I know!