Special characters didn’t decoded
-
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(' ;js' ;, new Date()); gtag(' ;config' ;, ' ;GA_TRACKING_ID' ;); </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 || [ ;] ;; 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!
The topic ‘Special characters didn’t decoded’ is closed to new replies.