Closed (duplicate)
Project:
Textimage
Version:
5.x-1.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
8 Nov 2007 at 03:24 UTC
Updated:
12 Feb 2008 at 03:21 UTC
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 '
';
endif;
Comments
Comment #1
danielb commentedPlease review patch I have created for this issue.
http://drupal.org/node/132678#comment-726325