# Displaying HTML

**URL:** <https://discuss.rubyonrails.org/t/displaying-html/2429>\
**Category:** rubyonrails-talk\
**Created:** [October 1, 2006, 5:06pm UTC](https://discuss.rubyonrails.org/t/displaying-html/2429 "2006-10-01T17:06:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dark\_Ambient](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Dark\_Ambient](https://discuss.rubyonrails.org/u/Dark_Ambient)\
**Post date:** [October 1, 2006, 5:06pm UTC](https://discuss.rubyonrails.org/t/displaying-html/2429/1 "2006-10-01T17:06:48Z")

</div>

I have TinyMCE in a user form which is saving correctly to the database. However when I go to output all of it is showing up as text: i.e. :

\<div id="contentWrapper"\> &nbsp;&nbsp;\<div id="banner"\> &nbsp;&nbsp;\</div\> &nbsp;&nbsp;\<div id="menu"\> &nbsp;&nbsp;\<a href="/index.html"\>Home\</a\> |

\<a href="/changelog.html"\>Changelog\</a\> | \<a href="/example\_full.php?example=true"\>Examples\</a\> | \<a href="/documentation.php"\>Manual\</a\> | \<a href="/plugins.php"\>Plugins\</a\> | \<a href="/support/"\>Support\</a

Is there something I need to do outside of \<%= @mymodel.myhtmlfield %\> to make it display correctly ?

TIA Stuart

---

<div class="post-metadata">

**Author:** ![Dark\_Ambient](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Dark\_Ambient](https://discuss.rubyonrails.org/u/Dark_Ambient)\
**Post date:** [October 1, 2006, 6:53pm UTC](https://discuss.rubyonrails.org/t/displaying-html/2429/2 "2006-10-01T18:53:32Z")

</div>

I've done some googling and it seems that perhaps line breaks are causing the code not to be redisplayed as HTML formatted. What is the best method to get the formatting into the database without the various &.. or do I do that on the way out ?

Stuart
