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
| Attachment | Size |
|---|---|
| 6e1a6f9734b66e401b07488ebe968f9e.png | 1.25 KB |

#1
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
I think the attached patch is even cleaner (you might actually want to preserve some backslashes). It is against 6.x-2.x.
Frodo
#3
Marking #374824: Using Signwriter in node body? as a duplicate of this issue.
#4
The solution in #2 has been committed to 6.x-2.x-dev
Will commit to D5 soon.
Thanks.