Skip to content

Excluding & passing in xml #60

@hanishjadala

Description

@hanishjadala

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions