In my rails application I am posting a comment. In rails 3 all data are html safe but in my comment post I want to render only links as html safe. So how can I achieve this partial post as html unsafe and rest as safe.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I came across one post related to this. Please have a look at it at http://rorandme.blogspot.in/#!http://rorandme.blogspot.com/2012/03/raw-and-h-in-rails.html. See if it helps.