View Single Post
  #1  
Old 10-09-2014, 11:45 AM
 
haleystudio haleystudio is offline
 

Member
  
Join Date: Oct 2014
Posts: 14
 

Red face Escaping { in custom module code

So I figured out how to make a new module
(http://kb.x-cart.com/display/XDD/Creating+sidebar+menu+in+customer+area was a good guide).

I am using my sidebar module to display some code from MailChimp - a newsletter signup. I would also like to use it to display my sharing icons from ShareThis.com.

However, using { } doesn't work - gets ignored. What's the escape character or some workaround?

HTML Code:
<script type="text/javascript">stLight.options({publisher: "redacted", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>

This may be a very newbie question but I haven't found the answer yet.

Thanks in advance!
__________________
X-Cart Business 5.1.6
Reply With Quote