shayonj
shayonj

Reputation: 910

Unformatted content Ckeditor and rails issue

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

Answers (1)

Jak
Jak

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

Related Questions