builder icon indicating copy to clipboard operation
builder copied to clipboard

Excluding & passing in xml

Open hanishjadala opened this issue 7 years ago • 0 comments

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

hanishjadala avatar Jul 12 '18 13:07 hanishjadala