[resolved] Quotation marks in the exif field (3 posts)

  1. trouille2
    Posted 3 years ago #

    I'm developping a website for a photographer who send me about 400 pictures with legends in the exif. We tested it before with 5 pictures and, thanks to exifography, it was running like a charm, now with the 400 pack, I discover the photographer put quotation marks in the description of a big part of the pictures. That obviously, ruin the code. Any idea on how to deal with it?


  2. trouille2
    Posted 3 years ago #

    Ok, it was easy.
    In the code, while calling the exif field, use str_replace to remove replace the quotation marks by "
    str_replace('"', '"', $string)

  3. kristarella
    Plugin Author

    Posted 3 years ago #

    Hey, glad you figured it out. Did you use a filter to do that or change the core code? If the latter just be aware of that when there's a plugin update.

    If you didn't use a filter and want to the instructions are here: http://www.kristarella.com/2012/07/filtering-exifography-output/#change-item

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Exifography
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic