Hi , I have used fck rich text editor in one of my rails app.Now it saves the entered html text along with html tags in Database.But while displaying how i can convert it to html page ? Now its displaying everything from DB.i.e. including html tags.(for ex . if i enter ''Hi'' with bold , it displays like <b>Hi</b>) Please anybody help me. Thanks in advance.. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Manoj Bhat wrote:> Hi , > > I have used fck rich text editor in one of my rails app.Now it saves the > entered html text along with html tags in Database.But while displaying > how i > can convert it to html page ? Now its displaying everything from DB.i.e. > including html tags.(for ex . if i enter ''Hi'' with bold , it displays > like <b>Hi</b>) >remove html escape filter(i.e <%= h %> <%= content %> Amar Daxini railstech.com -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
would be nice to see your code. how are you trying to do this? obviously, you don''t want to use any escaping (like the h-function does), but don''t forget about security issues like cross-site scripting. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
MaD wrote:> would be nice to see your code. how are you trying to do this? > > obviously, you don''t want to use any escaping (like the h-function > does), but don''t forget about security issues like cross-site > scripting.Oh...yes..thanks alot ......guess saved my lot of time .. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.