It is a little strange that the php function
htmlspecialchars($string, ENT_QUOTES);
does not help here. An apostrophe ' is converted to '
and this does not work for the javascript.
It needs to be a ’ which is really a right single quotation
mark. There is no other than the numeric code ' for the apostrophe.
If you want to make it transparent for users you could modify the
toggle script and add ca line 75 somewhere soon after line
$opt = array_merge($defaults, ParseArgs($opt));
this:
$opt['lshow'] = str_replace("'","’",$opt['lshow']);
$opt['lhide'] = str_replace("'","’",$opt['lhide']);
Then you can write in the wiki page toggle markup strings like
lshow="foo's right single quotes"
and the ' gets converted fine. Use the double quotes to wrap the
whole string.
~Hans
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users