# How to show escaped html tags?

**URL:** <https://www.ruby-forum.com/t/how-to-show-escaped-html-tags/124125>\
**Category:** Rails\
**Created:** [December 25, 2007, 4:48am UTC](https://www.ruby-forum.com/t/how-to-show-escaped-html-tags/124125 "2007-12-25T04:48:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wheels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7bcc69/32.png) [@wheels](https://www.ruby-forum.com/u/wheels)\
**Post date:** [December 25, 2007, 4:48am UTC](https://www.ruby-forum.com/t/how-to-show-escaped-html-tags/124125/1 "2007-12-25T04:48:33Z")

</div>

I have text stored as escaped html tags: “Overview  
\<br\>\<br\> Keynote�s”  
Is there a way to un-escape all the html tags? I found rails functions  
that can escape the tags but I haven’t found anything to go back  
easily.

- 

tommy

---

<div class="post-metadata">

**Author:** ![wheels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7bcc69/32.png) [@wheels](https://www.ruby-forum.com/u/wheels)\
**Post date:** [December 25, 2007, 9:19am UTC](https://www.ruby-forum.com/t/how-to-show-escaped-html-tags/124125/2 "2007-12-25T09:19:00Z")

</div>

wheels wrote:

> I have text stored as escaped html tags: “Overview  
> \<br\>\<br\> Keynote�s”  
> Is there a way to un-escape all the html tags? I found rails functions  
> that can escape the tags but I haven’t found anything to go back  
> easily.
> 
> - 
> 
> tommy

check out google for the keyword ‘unescape’ . either way →

[http://www.ruby-doc.org/stdlib/libdoc/cgi/rdoc/classes/CGI.html#M000095](http://www.ruby-doc.org/stdlib/libdoc/cgi/rdoc/classes/CGI.html#M000095)
