# Escaping html entities with in\_place\_editor\_field

**URL:** <https://www.ruby-forum.com/t/escaping-html-entities-with-in-place-editor-field/120581>\
**Category:** Rails\
**Created:** [November 18, 2007, 8:47pm UTC](https://www.ruby-forum.com/t/escaping-html-entities-with-in-place-editor-field/120581 "2007-11-18T20:47:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serengeti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Serengeti](https://www.ruby-forum.com/u/Serengeti)\
**Post date:** [November 18, 2007, 8:47pm UTC](https://www.ruby-forum.com/t/escaping-html-entities-with-in-place-editor-field/120581/1 "2007-11-18T20:47:02Z")

</div>

I have a field where a user might need to enter text that includes  
greater than and less than signs.

I am using in\_place\_editor\_field, so I need a way to tell it to escape  
html entities (convert to \> and \<) when displaying and NOT  
escape html entities (just show the greater than and less than signs)  
when editing.

Any ideas?
