<% songs.each do |s| %>
<td><%=h s.name %></td>
<% end %>
If i will remove the h..the output is still the same.. thank you for
your replies
<% songs.each do |s| %>
<td><%=h s.name %></td>
<% end %>
If i will remove the h..the output is still the same.. thank you for
your replies
<% songs.each do |s| %>
<td><%=h s.name %></td>
<% end %>If i will remove the h..the output is still the same.. thank you for
your replies
h is an alias for sanitize_html.
http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html
Try this...
<%= "<b>bold?</b>" %>
vs
<%= h "<b>bold?</b>" %>
That said... the behavior is different in Rails 3... which sanitizes by default. So, in Rails three, try this...
<%= "<b>bold?</b>" %>
vs.
<%= raw "<b>bold?</b>" %>
-philip
Ahh...Now I understand better. Thank you Sir.