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

_______________________________________________
pmwiki-devel mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to