Chris wrote:

> Ah, but the real magic of """ is something like:
> 
> >>> foo = """here's a single quote mark"""
> >>> foo
> "<a href=\"bar.html\">here's a single quote mark</a>"

What about

irb(main):001:0> foo = %{<a href="bar.html">here's a single quote
mark</a>}
"<a href=\"bar.html\">here's a single quote mark</a>"