The tool tip is truncated when an apostrophe (single quote) is used in the title textarea for a cck image field.



Whenever I use an apostrophe in the Title text area for a cck image field, the title is cutoff or truncated just before the apostrophe when I hover over the image. If I replace the apostrophe (') with an accent (`), the tool tip works perfectly. Any ideas? I'd much rather use an apostrophe.

I am using a contemplate file to generate the display. Here is the snippet from node-topic.tpl.php:

if (is_array($node->field_image_collage[0]['data'])) {
if ($node->field_image_collage[0]['data']['title']) {
echo " title='{$node->field_image_collage[0]['data']['title']}' ";
}
}