0

Incorrect use of entities

I'm having an issue with the Contacts API:

If I add a contact a contact in the webmail interface that is

jan&jan2 blabla

Upon fetching it via the API I'll see something like this:

CODE
  <fields yahoo:uri="http://social.yahooapis.com/v1/user/XXXXXXXXXXX/contact/XXXXXX/name/XXXXXXX" yahoo:created="2009-06-22T10:05:46Z" yahoo:updated="2009-06-22T10:05:46Z">
<id>XXXXXXX</id>
<type>name</type>
<value>
<givenName>jan&amp;amp;jan2</givenName>
<middleName/>
<familyName>blabla</familyName>
<prefix/>
<suffix/>
<givenNameSound/>
<familyNameSound/>
</value>
<editedBy>OWNER</editedBy>
</fields>



Look at the ampersands, you escape it twice!!!

Tiago

by
2 Replies
  • Looking into this - will post back with info once i have more details.

    - Jon
    0
  • hmm - I just ran a test and my data results returned back as "Test1 & Test2" - can you please provide the code that you are using to capture the contact information?

    Thanks.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    Twitter: jcleblanc
    0

Recent Posts

in Contacts