Search code examples
ruby-on-railsrubyrails-adminwysihtml5

wysihtml5 in rails_admin shows tags instead of effects


I'm using sferik/rails_admin gem & wysihtml5 text field editor as it is described here. Everything seems to work fine except one think. It doesnt work. For example in /admin page I see this: 1

And on my page I see this: 2

And the same trouble happens with all the effects. Even bold text I see as: b> bold text /b>

Can you help me handle this? Thanks 4 your attension!


Solution

  • Are you trying to output the html content in your view?

    If I understand your problem, you might just need to add a html_safe call in the view.