Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8834515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:02:18+00:00 2026-06-14T09:02:18+00:00

I am using the bootstrap-wysihtml5 gem , a WYSIWYG form text editor, for my

  • 0

I am using the bootstrap-wysihtml5 gem, a WYSIWYG form text editor, for my app.
When I enter something that looks like this into my text area:

“this is a test to see if bold and italic are working”

I see this in my view:

"this is a test to see if **bold** and *italic* are working"

Any html is shown as code instead of getting rendered as formatted text.
It seems the formatting is getting coded, it’s just not rendering correctly.
What could be causing this?

My code is as below, and closely follows the ReadMe.

posts/_form.html.erb

<%= form_for @post, :html => { :multipart => true } do |f| %>

  <%= f.label :content %>
  <%= f.text_area :content, :class => 'wysihtml5' %>

  <%= f.label :photo %>
  <%= f.file_field :photo %>

  <script type="text/javascript">
    $('.wysihtml5').each(function(i, elem) {
      $(elem).wysihtml5();
    });
  </script>

  <div class="actions">
    <%= f.submit %>
  </div>

<% end %>

posts/_post.html.erb

<div class="photo"><%= image_tag post.photo.url %></div>
<div class="content"><%= post.content %></div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:02:19+00:00Added an answer on June 14, 2026 at 9:02 am

    Try this in posts/_post.html.erb

    <div class="content"><%= post.content.try(:html_safe) %></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Bootstrap on a web app that has some pages that contain iframes.
I'm using bootstrap-wysihtml5-rails in my rails app, all is working well until I attempt
I'm using Twitter bootstrap tooltips with javascript like the following: $('a[rel=tooltip]').tooltip(); My markup looks
I am using bootstrap's grid, and I would like to have a div that
Ive been using bootstrap for a few months and am looking to clarify something
I am using twitter bootstrap in my rails app, and I am constructing a
While creating a website using Twitter Bootstrap's carousel, it seems that some scripts are
By using bootstrap I would like to display green and red labels which context
I am using bootstrap and i find the height of the text field is
I have a site that is using bootstrap and ScrollSpy nav to scroll to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.