Hi All
I noticed that the form helper ‘select’ does automatically do HTML
escaping for values within the option tag. I need to show thing like the
euro sign, so I need to be able to turn this feature off.
Controller:
@crncy = %w($ € €)
View:
form.select(:id, @crncy.collect {|c| [ c, ‘bla’ ] }, {:prompt =>
‘€’})
The euro sign in :prompt is shown correctly, but the others are not.
Any suggestions ?
thnx
LuCa
ps I’m using rails 2.0.2
On 22 Jul 2008, at 15:06, Luca S. wrote:
Hi All
I noticed that the form helper ‘select’ does automatically do HTML
escaping for values within the option tag. I need to show thing like
the
euro sign, so I need to be able to turn this feature off.
It’s hardcoded to do this. Can’t thing of anything you can do except
build up the option tags yourself.
Fred
I red somewhere about an option :escape_html
Will this or is this already included in a newer rails version ?
thnx
LuCa