Hi I have problem with printing database value with has text in it. value in DB is: <b>workinfo</b> and on html page it shows as: <b>workinfo</b> I use this call to print out that value: <%=h @imitem.grpdesc if @imitem -%> I would like to show that value as HTML (like it was typed) on that output HTML page. Now ruby seems to escape it. Thank You --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 4 Feb 2008, at 17:42, KTU wrote:> > Hi > > I have problem with printing database value with has text in it. > > value in DB is: <b>workinfo</b> > > and on html page it shows as: > > <b>workinfo</b> > > I use this call to print out that value: > > <%=h @imitem.grpdesc if @imitem -%> > > I would like to show that value as HTML (like it was typed) on that > output HTML page. Now > ruby seems to escape it. >You''re escaping it (that''s what h does) Fred> Thank You > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
yep that it was thanks again. On Feb 4, 7:47 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 4 Feb 2008, at 17:42, KTU wrote: > > > > > > > Hi > > > I have problem with printing database value with has text in it. > > > value in DB is: <b>workinfo</b> > > > and onhtmlpage it shows as: > > > <b>workinfo</b> > > > I use this call toprintout that value: > > > <%=h @imitem.grpdesc if @imitem -%> > > > I would like to show that value asHTML(like it was typed) on that > > outputHTMLpage. Now > > ruby seems to escape it. > > You''re escaping it (that''s what h does) > > Fred > > > Thank You--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---