storing raw html in as a string

if i had something like this..

<ul class="list>
<li>one</li>
<li class='two'>two</li>
</ul>

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

i have tried something like

string = <<END

<ul class="list>
<li>one</li>
<li class='two'>two</li>
</ul>

END

but am having no luck..

thanks!

i have tried something like

string = <<END

<ul class="list>
<li>one</li>
<li class='two'>two</li>
</ul>

END

but am having no luck..

string = <<END

<ul class="list>
<li>one</li>
<li class='two'>two</li>
</ul>

END
=> "\n<ul class="list>\n<li>one</li>\n<li class='two'>two</li>\n</ul>\n\n"

puts string

<ul class="list>
<li>one</li>
<li class='two'>two</li>
</ul>

=> nil

What kind of "luck" were you expecting?

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.