# Help!

**URL:** <https://www.ruby-forum.com/t/help/84112>\
**Category:** Rails\
**Created:** [February 1, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/help/84112 "2007-02-01T15:08:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Italo\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@Italo\_M](https://www.ruby-forum.com/u/Italo_M)\
**Post date:** [February 1, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/help/84112/1 "2007-02-01T15:08:25Z")

</div>

who i show in .rhtml my text " **Hellow!**" bold ?

//Controller  
…  
@message = " **Hellow!**"

…  
//view  
…  
\<%= @message %\>  
…

result:  
**Hellow!**

i would like  
Hellow!

–  
Ãtalo Matos

---

<div class="post-metadata">

**Author:** ![Italo\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@Italo\_M](https://www.ruby-forum.com/u/Italo_M)\
**Post date:** [February 1, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/help/84112/2 "2007-02-01T15:38:28Z")

</div>

Next time choose a better subject then “help!”. It’s not describtive  
about your problem. Most people won’t read it.

//Controller  
…  
@message = “Hellow!”

…  
//view  
…  
\<%= “  
#{@message}” %\>

---

<div class="post-metadata">

**Author:** ![Italo\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@Italo\_M](https://www.ruby-forum.com/u/Italo_M)\
**Post date:** [February 1, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/help/84112/3 "2007-02-01T16:28:34Z")

</div>

it forgives ,

the message is dinamic.  
the message comes of the data base with tags.

2007/2/1, Thorsten L [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> …
> 
> > @message = “ **Hellow!** ”  
> > i would like  
> > Hellow!
> > 
> > –  
> > Ãtalo Matos
> 
> >

–  
Ãtalo Matos

---

<div class="post-metadata">

**Author:** ![Italo\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@Italo\_M](https://www.ruby-forum.com/u/Italo_M)\
**Post date:** [February 1, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/help/84112/4 "2007-02-01T19:23:49Z")

</div>

Yes…

the problem is interpret html tag  
  
  
etc

2007/2/1, Phlip [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Phlip  
> [http://c2.com/cgi/wiki?ZeekLand](http://c2.com/cgi/wiki?ZeekLand) ← NOT a blog!!
> 
> >

–  
Ãtalo Matos

---

<div class="post-metadata">

**Author:** ![Italo\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@Italo\_M](https://www.ruby-forum.com/u/Italo_M)\
**Post date:** [February 1, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/help/84112/5 "2007-02-01T19:26:49Z")

</div>

Italo M. wrote:

> the problem is interpret html tag  
>   
>   
> etc

Please write complete posts with more details.

–  
Phlip  
[http://c2.com/cgi/wiki?ZeekLand](http://c2.com/cgi/wiki?ZeekLand) ← NOT a blog!!

---

<div class="post-metadata">

**Author:** ![Italo\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/74df32/32.png) [@Italo\_M](https://www.ruby-forum.com/u/Italo_M)\
**Post date:** [February 1, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/help/84112/6 "2007-02-01T16:59:36Z")

</div>

Italo M. wrote:

> the message is dinamic.  
> the message comes of the data base with tags.

Try these two experiments in your rhtml:

\<%= ‘ **yo** ’ %\>

\<%=h ‘ **yo** ’ %\>

The first should be bold, and the second should show **etc in  
your browser.**

 

**The h escapes \< to \<. Without it, you should get raw HTML.**

 

**Now check your database - does it reeeally have \< \> in it? or \< \>?**

 

**–  
Phlip  
[http://c2.com/cgi/wiki?ZeekLand](http://c2.com/cgi/wiki?ZeekLand) ← NOT a blog!!**
