Reputation: 910
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 ?
Upvotes: 0
Views: 327
Reputation: 3243
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>" %>
Upvotes: 2