Storing raw html in as a string

if i had something like this…

  • one
  • two


but am having no luck…


On Mon, May 2, 2011 at 1:38 PM, Sergio R. [email protected]

but am having no luck…

string = <<END

  • one
  • two

=> nil

What kind of “luck” were you expecting?

Hassan S. ------------------------ [email protected]
twitter: @hassan

On 2 May 2011 21:38, Sergio R. [email protected] wrote:

how would i go about storing that in a string variable?

i have tried something
but am having no luck…

It would help if you said what you then tried to do or what specific
problem/error message you summarise with “no luck”,

It’s also worth noting that you’re not closing the quote on the ul’s
class name, so if you tried to use that string as HTML in a view, it
would not render correctly.

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