I'm using Google Tag Manager plugin for Wordpress and WP keeps adding CDATA to the tag manager script and it fails the site verification. Without CDATA my other simple html sites are verified.
I changed wp-includes\post-template.php line 167 to this, as per the answer I found here
$content = str_replace('<![CDATA[','',$content);
$content = str_replace(']]>','',$content);
//$content = str_replace(']]>', ']]>', $content);
But, still WP is adding CDATA to the scripts.
How can I prevent this? Is there any other method?