error rendering apostrophe

scOOby - February 17, 2009 - 10:33
Project:Signwriter
Version:5.x-1.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

Hi,

when I try to render an apostrophe ( ' ) the result in the image is backslash-apostrophe ( \' ) - see the attached image.

Can anyone help me finding a way to render only the apostrophe?

Thanks,
Andrea

AttachmentSize
6e1a6f9734b66e401b07488ebe968f9e.png1.25 KB

#1

meatsack - May 18, 2009 - 00:09

Had the same problem. I'm using the 6.x version so things are probably different but I fixed it by finding the 'signwriter_image' function and adding

  $text = html_entity_decode($text, ENT_QUOTES);
+  //get rid of slashes
+  $text = stripslashes($text);

#2

Frodo Looijaard - July 12, 2009 - 14:16
Status:active» needs review

I think the attached patch is even cleaner (you might actually want to preserve some backslashes). It is against 6.x-2.x.

Frodo

AttachmentSize
signwriter-filter-quotes.diff 352 bytes

#3

Justin W Freeman - July 14, 2009 - 12:44

Marking #374824: Using Signwriter in node body? as a duplicate of this issue.

#4

Justin W Freeman - July 14, 2009 - 12:49
Status:needs review» reviewed & tested by the community

The solution in #2 has been committed to 6.x-2.x-dev

Will commit to D5 soon.

Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.