2
I found the code is in the text sanitizer process. I'm sure there' a sanctioned way to add javascript functions and allow them to be called in content pages. As a work around I added some code to class/module.textsanitizer.php so that when I pass in
href='mymagicjunk'
it returrns
href='J A V A S C R I P T :myfunction'
without the extra spaces. I'm sure there's a better way but this worked quickly.