Issue with HTML tag using documentation theme and user macro

Jim Spoto September 17, 2012

Hello all -

I'm attempting to customize my header using the Documentation theme, and I'm having a problem with wiki markup that uses HTML/javascript.

For demo purposes, here is my User Macro (let's call it {foo})

<script>
function test(name){
    alert('hello ' + name);
}
</script>

<span style="background: green; color: white; padding: 4px 12px; \-moz-border-radius:4px; \-webkit-border-radius: 4px;">GREEN

<select>
  <option>Milk</option>
  <option>Coffee</option>
  <option>Tea</option>
</select>

<input value="ButtonName" type="button" onclick="test('hooray')" >

</span>

The issue is, that when customizing the Documentation theme by simply calling {foo} in the header, the contents of the <script> entity are spammed to my Confluence page!

The javascript works, but unfortunately my page header now has the function definition echo'd as text... not exactly what I'm going for :P

Any help is appreciated.... and thank you!

- js

1 answer

0 votes
Jim Spoto September 19, 2012

*bump* ....

Suggest an answer

Log in or Sign up to answer