Support

Account

Home Forums Front-end Issues html code into textarea Reply To: html code into textarea

  • I am having a similar problem.

    I am trying to put a Google analytics code into textarea field, The google code is:

    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 977703549;
    var google_conversion_label = "wI-FCJOqxAIQ_aSa0gM";
    var google_custom_params = window.google_tag_params;
    var google_remarketing_only = true;
    /* ]]> */
    </script>
    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/977703549/?value=0&label=wI-FCJOqxAIQ_aSa0gM&guid=ON&script=0"/>
    </div>
    </noscript>

    but it comes out on the frontend with the noscript portion in quotes like this:

    <noscript>
    "
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/977703549/?value=0&label=wI-FCJOqxAIQ_aSa0gM&guid=ON&script=0"/>
    </div>
    "
    </noscript>

    I tried setting ‘Formatting’ to ‘Convert HTML into tags’ and that didn’t help, also tried “no Formatting” as well and I tried to get rid of the quotes with str_replace to no avail.

    Any help on this would be very much appreciated, thank you.