build()->seria" /> build()->seria" /> build()->seria"/>

JMS serialized XmlAttribute with HTML entity &

48 Views Asked by At

I use this annotation for property "picture"

@JMS\XmlAttribute()

Build result with methods

\JMS\Serializer\SerializerBuilder::create()->build()->serialize($data, 'xml')

Object with property $picture value "http ://site.com/?a=1&b=2" serialized to xml

<tag picture="http://example.com/?a=1&amp;b=2"

How to setup serialize without &amp;? I need simple '&' do not decode & into an HTML entity

0

There are 0 best solutions below