View Single Post
  #6  
Old 10-10-2014, 05:50 AM
 
haleystudio haleystudio is offline
 

Member
  
Join Date: Oct 2014
Posts: 14
 

Default Re: Escaping { in custom module code

You can see this straight from sharethis.com. You don't have to specify a site but you do need to log in.

HTML Code:
<script type="text/javascript">var switchTo5x=true;</script> <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script> <script type="text/javascript">stLight.options({publisher: "b4f4f721-de8b-4e2f-8c74-d5175ea04b23", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>


Publisher value was "redacted" in earlier code post.

Sharethis wants the code in the <head> actually. (I'll take advice on how to do that as well...) I have another module (MailChimp) that also needs {'s, not in the <head>.

Things that haven't worked so far (assume the complementary closing tag):
{literal} around script line
{
\{
{{
{{{
__________________
X-Cart Business 5.1.6

Last edited by haleystudio : 10-10-2014 at 05:53 AM. Reason: format
Reply With Quote