I have a simple user macro, without a body, that would need to load a script, and start it (by calling the function start).
If I put the code in a HTML block on the page, it works just as intended:
<script src="/download/attachments/191267646/dbjavascript.js"></script>
<script>start()</script>
However, if I put these two lines in a user macro, then I get the following code in my source:
<script src="/download/attachments/191267646/dbjavascript.js"/><script>//<![CDATA[
start()
//]]>
And this doesn't work.... Why is Confluence "encoding" the second part?... Why is confluence not taking this as I type it...