Try something like this
<%= content_tag(:div, content_tag(:p, "Our programme notes are being
prepared.", :class => 'regtextend'), :id => 'notes').html_safe %>
Or
<%= raw content_tag(:div, content_tag(:p, "Our programme notes are being
prepared.", :class => 'regtextend'), :id => 'notes').html_safe
Why would it? is html what gets rendered, use and end the string with
html_safe
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send
Hello,
The following is a toggle div, in which I'm trying to add a newline
after the word 'notes:'
<%= content_tag(:div, content_tag(:p, "Our programme notes are being
prepared.", :class => 'regtextend'), :id => 'notes') %>
And this doesn't work:
<%= content_tag(:div, content_tag(:p, "Our progr
3 matches
Mail list logo