# FCK editor implementaion to rails app

**URL:** <https://www.ruby-forum.com/t/fck-editor-implementaion-to-rails-app/188519>\
**Category:** Rails\
**Created:** [May 13, 2010, 9:18am UTC](https://www.ruby-forum.com/t/fck-editor-implementaion-to-rails-app/188519 "2010-05-13T09:18:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bestha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b782af/32.png) [@bestha](https://www.ruby-forum.com/u/bestha)\
**Post date:** [May 13, 2010, 9:18am UTC](https://www.ruby-forum.com/t/fck-editor-implementaion-to-rails-app/188519/1 "2010-05-13T09:18:17Z")

</div>

Hi ,

I have used fck rich text editor in one of my rails app.Now it saves the  
entered html text along with html tags in Database.But while displaying  
how i  
can convert it to html page ? Now its displaying everything from DB.i.e.  
including html tags.(for ex . if i enter ‘Hi’ with bold , it displays  
like **Hi** )

Please anybody help me.

Thanks in advance…

---

<div class="post-metadata">

**Author:** ![bestha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b782af/32.png) [@bestha](https://www.ruby-forum.com/u/bestha)\
**Post date:** [May 13, 2010, 2:00pm UTC](https://www.ruby-forum.com/t/fck-editor-implementaion-to-rails-app/188519/2 "2010-05-13T14:00:19Z")

</div>

Manoj Bhat wrote:

> Hi ,
> 
> I have used fck rich text editor in one of my rails app.Now it saves the  
> entered html text along with html tags in Database.But while displaying  
> how i  
> can convert it to html page ? Now its displaying everything from DB.i.e.  
> including html tags.(for ex . if i enter ‘Hi’ with bold , it displays  
> like **Hi** )

remove html escape filter(i.e \<%= h %\>  
\<%= content %\>

Amar D.

> **[RailsTech.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=railstech.com)**
>
> Customer service is our #1 priority. Get a premium domain for your website today. Financing available.

---

<div class="post-metadata">

**Author:** ![bestha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b782af/32.png) [@bestha](https://www.ruby-forum.com/u/bestha)\
**Post date:** [May 13, 2010, 2:01pm UTC](https://www.ruby-forum.com/t/fck-editor-implementaion-to-rails-app/188519/3 "2010-05-13T14:01:55Z")

</div>

would be nice to see your code. how are you trying to do this?

obviously, you don’t want to use any escaping (like the h-function  
does), but don’t forget about security issues like cross-site  
scripting.

---

<div class="post-metadata">

**Author:** ![bestha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b782af/32.png) [@bestha](https://www.ruby-forum.com/u/bestha)\
**Post date:** [May 13, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/fck-editor-implementaion-to-rails-app/188519/4 "2010-05-13T15:11:48Z")

</div>

MaD wrote:

> would be nice to see your code. how are you trying to do this?
> 
> obviously, you don’t want to use any escaping (like the h-function  
> does), but don’t forget about security issues like cross-site  
> scripting.

Oh…yes…thanks alot …guess saved my lot of time …
