Closed cferdinandi closed 10 years ago
Identified cause: While shelter.getPets
pulls a description with markup included, pet.get
for individual pet records pulls the description without any markup (including paragraphs, line breaks, link elements, etc.).
Next Steps: I have an email in to the Petfinder API team to understand why this difference in API calls exists. If they can't or won't adjust it on their end, I'll need to loop through all dogs in the shelter.getPets
call and just display data for the one who's ID matches. This involves far more work for the server and less than ideal, but is the only way to consistently and programmatically get pet descriptions with formatting.
Implemented a temporary fix by looping through the full shelter.getPets
list and just displaying data for the pet who's data is being requested. Obviously, this is a very inefficient way to use the API.
A ticket has been raised with Petfinder. Still waiting on a proper resolution.
Fixed with version 4.19
Petfinder
PAWS New England