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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.