Open hanishjadala opened 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:
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
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:
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