Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using EXIF with Bulk Media Upload and Automatic Node Titles to import photos and create a custom content type "EXIF Image" that populates all fields with EXIF or ITPC data. It works great, except that if the title metadata has a quote mark, it comes out as "
in HTML instead of just " Any ideas?
Thanks
scotisle
Comment | File | Size | Author |
---|---|---|---|
#4 | amp_quot_in_titles-2269141-4.patch | 712 bytes | cyborg_572 |
Comments
Comment #1
jasonmcd CreditAttribution: jasonmcd commentedComment #2
jasonmcd CreditAttribution: jasonmcd commentedComment #3
rimu CreditAttribution: rimu commentedI had this problem too, except I only noticed & as we hadn't uploaded any files with quotes in their names.
I fixed it by adding this line inside the _bulk_media_upload_generate_entity function:
the end result looked like this
Maaaybe this is a token module issue as the problem appeared after the call to token_replace but whatever.
Comment #4
cyborg_572 CreditAttribution: cyborg_572 at Northern Commerce commentedEntity labels generally have their own sanitization logic, so the attached patch tells the token system not to sanitize the token values as the title is being generated.