I noticed a problem with textimage.

If the phrase you are trying to convert with textimage contains an ampersand or the tag - the textimage becomes stuffed.

This can happen in drupal if users add the ampersand to page titles, or when trying to delete a node - drupal puts it's own emphasis tags in.

At the moment I am doing my own pre-replacement on the titles before I textimage them. It would be nice if textimage handled this.

if ($title):
$converted_title = str_replace('&', '&', $title);
$converted_title = str_replace('', '', $converted_title);
$converted_title = str_replace('
', '', $converted_title);
print '

'.theme_textimage_image('sandregular', ' '.$converted_title, array(), 'gif', $converted_title, $converted_title, NULL, TRUE).'

';
endif;

Comments

danielb’s picture

Assigned: Unassigned » danielb
Status: Active » Closed (duplicate)

Please review patch I have created for this issue.
http://drupal.org/node/132678#comment-726325