[pmwiki-devel] String confusion
Robert Clark
nmclarks at gmail.com
Thu Nov 15 11:42:15 CST 2007
I'm missing some basic understanding here, and I'm hoping someone can
help me out (any comments/criticism are appreciated).
Here's a fragment of some code from a recipe I'm working on:
Markup('node', $when, '/\\(:node (.*):\\)/e', "Node('$1')");
function Node($text) {
print "<script>alert(\"text=$text\")</script>";
return "text=$text<br>";
}
If I include markup such as (:node foo:), then this will print the
"text=foo" as expected but the JS alert will display something like
"text=9L". :-(
What am I not understanding?
Thanks,
Bob Clark
More information about the pmwiki-devel
mailing list