How To Tell Builder Not To Avoid Values

ruby-1.8.7-p249 > xml = Builder::XmlMarkup.new => <inspect/> ruby-1.8.7-p249 > xml.foo '<b>wow</b>' => "<inspect/><foo>&lt;b&gt;wow&lt;/b&gt;</foo>" ruby-1.8.7-p249 > 

Builder escapes content and converts the b tag to an escape value. How can I tell Builder not to avoid this? I am using Ruby 1.8.7.

+7
ruby ruby-on-rails builder
source share
1 answer

Builder::XmlMarkup#<<

 xml.foo do xml << '<b>wow</b>' end 
+11
source share

All Articles