RXML vs form_tag etc

Railsers:

The documentation for *.rhtml views invariably mentions *.rxml views.

They sound like a Good Thing, because some of my generating code mixes
Ruby and HTML so densely that the code is full of %><% markers.
Dropping down to only one language would be a blessing.

However, this documentation invariably avoids mentioning one tiny,
insignificant detail:

How do you inject raw HTML into a Builder::XmlMarkup builder?

Each time I try, the Builder escapes everything, as if my users wanted
to see my tags and such, raw in their browser.

So if I wanted to put form_tag and other view helpers into a Builder,
how do I unescape the HTML they create?


Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!

How do you inject raw HTML into a Builder::XmlMarkup builder?

* The special XML characters <, >, and & are converted to <,

> and & automatically. Use the << operation to

insert text without modification.

Bleah!

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