Erb question

<%=“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 :slight_smile:

Haofei wrote:

ab cd ef

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

<%=“ab
cd
ef”%>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs