[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

erb question

yuesefa

9/26/2006 12:09:00 AM

<%="ab\r\ncd\r\nef"%> #this is the code

what i want is

ab
cd
ef

but the code above just give me

ab cd ef

is there any method i can turn the string into html code? thanks :-)

1 Answer

Paul Lutus

9/26/2006 1:03:00 AM

0

Haofei wrote:

> <%="ab\r\ncd\r\nef"%> #this is the code
>
> what i want is
>
> ab
> cd
> ef
>
> but the code above just give me
>
> ab cd ef
>
> is there any method i can turn the string into html code? thanks :-)

<%="ab<br>cd<br>ef"%>

--
Paul Lutus
http://www.ara...