We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9162
    • 39 Posts
    Hi there,

    Hope I’m not posting in the wrong place here...

    I’ve just started building my own HTML template, but now wherever there’s an " (double quote) that I’ve added, it’s being escaped when I view a page using the template in the browser - \" . An example:

    Code in template:
    <title>[(site_name)] - [*pagetitle*]</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" type="text/css" href="[(base_url)]assets/templates/bbq/css/styles.css" />
    


    What it looks like in the browser:
    <title>My Site - Home</title>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />
    <link rel=\"stylesheet\" type=\"text/css\" href=\"/assets/templates/bbq/css/styles.css\" />
    


    I’ve tried to search for why this happens, but I can’t find any solution. So I really hope someone here can help me.

    I’m on out of box version 0.9.6.1

    Thanks in advance
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Looks like you have PHP configured with magic_quotes set to on. http://www.php.net/magic_quotes
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 9162
        • 39 Posts
        Thanks a lot! It worked. smiley