Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

user macro escaping characters

Peter Van Gerwen August 17, 2021

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"/>&lt;script&gt;//&lt;![CDATA[
start()
//]]&gt;

And this doesn't work.... Why is Confluence "encoding" the second part?... Why is confluence not taking this as I type it...

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events