Help!

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

//Controller

@message = " Hellow! "


//view

<%= @message %>

result:
Hellow!

i would like
Hellow!


Ítalo Matos

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}” %>

it forgives ,

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

2007/2/1, Thorsten L [email protected]:

@message = “ Hellow!
i would like
Hellow!


Ítalo Matos


Ítalo Matos

Yes…

the problem is interpret html tag


etc

2007/2/1, Phlip [email protected]:

Phlip
http://c2.com/cgi/wiki?ZeekLand ← NOT a blog!!


Ítalo Matos

Italo M. wrote:

the problem is interpret html tag


etc

Please write complete posts with more details.


Phlip
http://c2.com/cgi/wiki?ZeekLand ← NOT a blog!!

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 ← NOT a blog!!