# How to show HTML RoR as regular text

**URL:** <https://www.ruby-forum.com/t/how-to-show-html-ror-as-regular-text/71419>\
**Category:** Rails\
**Created:** [October 8, 2006, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-show-html-ror-as-regular-text/71419 "2006-10-08T16:22:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [October 8, 2006, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-show-html-ror-as-regular-text/71419/1 "2006-10-08T16:22:02Z")

</div>

Hi all

I want to display on my page and example of viewer as a regulat text,  
but after adding it in the design mode in Dreamweaver, whe I open the  
page in my browser, ot shos nt as text, but it executes the code.

here is te example:

 Hello!!! \<%= start\_form\_tag :controller=\>'greet', :action=\>'say\_hi' %\>

Enter Your N.: \<%= text\_field\_tag :textName, nil, :size=\> 20 %\>

\<%= @message %\>

\<%= submit\_tag( "Hello") %\>

\<%= end\_form\_tag %\>

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [October 8, 2006, 5:15pm UTC](https://www.ruby-forum.com/t/how-to-show-html-ror-as-regular-text/71419/2 "2006-10-08T17:15:49Z")

</div>

Jose P. wrote:

> \<%= end\_form\_tag %\>

I’m sorry I’m not sure I understand your question… do you NOT want the  
code to execute?  
Cheers  
Mohit.

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [October 8, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/how-to-show-html-ror-as-regular-text/71419/3 "2006-10-08T17:41:51Z")

</div>

enclose the html in

```

```
 tags

On 10/8/06, Mohit S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > 
> 
> Cheers  
> Mohit.
> 
> >

–  
Never be afraid to try something new. Remember, amateurs built the ark;  
professionals built the Titanic!

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [October 9, 2006, 1:30pm UTC](https://www.ruby-forum.com/t/how-to-show-html-ror-as-regular-text/71419/4 "2006-10-09T13:30:55Z")

</div>

Leon,

it works fine withe the

```

```
 tags

thanks

> **[Jsnit.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=jsnit.com)**
>
> Find your domain name at HugeDomains. Start using this domain right away.

Leslie wrote:

> enclose the html in
> 
> ```
> 
> ```
> tags
> 
> On 10/8/06, Mohit S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > 
> > 
> > Cheers  
> > Mohit.
> > 
> > >
> 
> –  
> Never be afraid to try something new. Remember, amateurs built the ark;  
> professionals built the Titanic!
