8
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 is escaping the content and is converting the b tag into an escaped value. How do I tell Builder to not escape it? I am using Ruby 1.8.7.

John Topley
  • 113,588
  • 46
  • 195
  • 237
Nick Vanderbilt
  • 36,724
  • 29
  • 83
  • 106

1 Answers1

13

Builder::XmlMarkup#<<

xml.foo do
  xml << '<b>wow</b>'
end
Alex Wayne
  • 178,991
  • 47
  • 309
  • 337