jimweirich / builder

Provide a simple way to create XML markup and data structures.
http://builder.rubyforge.org
MIT License
361 stars 103 forks source link

Excluding & passing in xml #60

Open hanishjadala opened 6 years ago

hanishjadala commented 6 years ago

require 'builder'

builder = ::Builder::XmlMarkup.new(:target=>@output, :indent=>2) builder.result{ builder.total_prospects "1" builder.prospect { |b| b.text << "Test & Me"; b.welcome << "Welcome & You"; } } print builder OUTPUT: screenshot from 2018-07-12 19-18-41

Can you help how should I do this. Need text in a tag but as you can see it is not coming with in tags