Escape pipe character

Apr 5, 2013 at 11:01 AM
I'm using your Style Helper and would like to escape pipe (|) character. Below is the code i've in the skin file:
<fortyfingers:STYLEHELPER ID="SHGACode" AddToHead='<script type="text/javascript">hello || </script>' runat="server" />
Now in the page view source it shows :
<script type="text/javascript">hello</script>
instead of:
<script type="text/javascript">hello ||</script>
How do I add the pipe characters.
Coordinator
Apr 5, 2013 at 12:07 PM
The double pipe character is used to split for multiple items.
I cannot change that behaviour as it's in use by others
Currently there is no real way around this but to put the code in a separate JS file and link to that file.

<fortyfingers:STYLEHELPER ID="SHGACode" AddJsFile="Hello.js" runat="server" />

HTH

Timo