#+BEGIN_HTML\n<div class="move">\n<a href="#" onclick="toggleContainer('Home', '2');"> 'foo' </a>\n</div>\n#+END_HTML
#+MACRO: internal @@e-html:<div class="move"><a href="#" onclick="toggleContainer('Home', $1);"> $2 </a></div>@@
the result obtained is as expected.
Why is it this way ? I would have expected the first version to also work.
Incidentally, there is a potential difficulty with macro arguments and quoting.
Arguments to macros are not quoted and seems to be split wlong with commas.
Maybe a quoting mechanism would be needed (how to pass an argument with a comma ?)