ruby-1.8.7-p249 > xml = Builder::XmlMarkup.new
=> <inspect/>
ruby-1.8.7-p249 > xml.foo '<b>wow</b>'
=> "<inspect/><foo><b>wow</b></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.
Builder::XmlMarkup#<<
xml.foo do
xml << '<b>wow</b>'
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With