Manipulate Hotspot Vars

Is it possible to manipulate the hotspot vars?

I have $(server-name) set as “My_Hotspot” and I want to display the server name on the status page but replace the underscore with a space so it displays as “My Hotspot”.

Thanks.

Why not call the server name “My Hotspot” to begin with? It is allowed you know.

Other than that, you can output the variable into a JavaScript string, and then do the replacement and display within JavaScript.

e.g.

<h1><script type="text/javascript">document.write('$(server-name)'.replace('_', ' '));</script></h1>

Ahh, I just assumed that spaces were not allowed in the server name! Silly me!