From: "eike.rb (Eike Dierks)" Date: 2012-04-05T17:57:04+09:00 Subject: [ruby-core:44143] [ruby-trunk - Bug #6213] Builder::XmlMarkup drops html_safe Issue #6213 has been updated by eike.rb (Eike Dierks). Hi nobu, I wrote to jim I want to make this builder concept into the core of ruby. I just love this idea, of an object of being in full controll of all and any messages send to it. That's a proxy ---------------------------------------- Bug #6213: Builder::XmlMarkup drops html_safe https://bugs.ruby-lang.org/issues/6213#change-25666 Author: eike.rb (Eike Dierks) Status: Third Party's Issue Priority: Low Assignee: Category: Target version: ruby -v: 1.9.2 A single line in Builder::XmlMarkup needs to be changed slightly, to enable the builder to work with the html_safe flag that was introduced with rails3. like def method_missing(sym, *args, &block) [...] text = arg.to_s # changed this line to keep the html_safe flag -- http://bugs.ruby-lang.org/