• I’m using GF for my colleague submit Google tracking code like Google Analytics, Conversion, Google Tag Manager etc to me and at the same time the notification will send a copy to Asana(Task Management System) via email.

    
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'GA_TRACKING_ID');
    </script>
    

    Amazingly your plugin able to display [] correctly instead of HTML entities but other special characters showing HTML entities.
    This is what I saw in Asana task description.

    
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(&#039 ;js&#039 ;, new Date());
    gtag(&#039 ;config&#039 ;, &#039 ;GA_TRACKING_ID&#039 ;);
    </script>
    

    If I use default Rich Editor in GF, all special characters being decoded nicely as they are using wp_specialchars_decode() except [ and ]. It shows like this in Asana.

    
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
    <script>
      window.dataLayer = window.dataLayer || &#091 ;&#093 ;;
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'GA_TRACKING_ID');
    </script>
    

    PS: I added space at the end of the HTML entities because WordPress will encode it into special characters. Just to show you how it looks like.

    Please help!

    • This topic was modified 6 years, 5 months ago by Juno.
  • The topic ‘Special characters didn’t decoded’ is closed to new replies.