0

I've written an app to search and display ophthalmic medications. When uses select a medication I query the open.fda.gov APIs to get the specific listings for that medication.

example API call result

The problem is, these listings are not very well formatted. The text in each section can be a long string of text with no line breaks, unformatted lists, etc.

I've tried to write code to parse the data to find logical places to at least put some line breaks and break up the text a little. Sometimes this works acceptable, sometimes it doesn't.

Are there any other sources for this data that might be better formatted, or any other advice on how to display this text in a more appealing way?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.