i am using ckeditor for my rails app. After i save the page, it shows the unformatted content,
<p> <strong>test</strong></p> <h3 style="color:blue;"> <strong>test 1</strong></h3>
What am i missing here ?
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 guess you are using rails 3.x. try this
<%= raw "your database stored HTML string"%>In your case
<%= raw "<p> <strong>test</strong></p> <h3 style="color:blue;"> <strong>test 1</strong></h3>" %>