html_safe and raw works good inside Viwe, but it dosent work inside action inside controller
a = "<p> sample text </p>"
Inside view <%=a.html_safe%>
give output "Sample text"
Inside controller
def test 
   a = "<p> sample text </p>" 
   a.html_safe 
end
this returns the as it is "<p> sample text </p>"
please guide me how to make this html_safe work inside controller action....
sample text
" – lamrin Jan 02 '12 at 14:29sample text
" – lamrin Jan 02 '12 at 15:02