}catch (ex){} showing in header

I have this string showing in the header of my site : }catch (ex){}

I can see this in the source code :

    }/stylescripttry{ script id=mcjs!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,script,https://chimpstatic.com/mcjs-connected/js/users/2095bd42340716fa509260a90/406ca4747992260e47dbadffd.js);/script
 }catch (ex){}/script     style type=text/css id=wp-custom-css
            @media (max-width: 465px){
    .heading-mobile-center{
        text-align: center;
    }

Can anyone help ?

Thanks.

Topic plugin-mailchimp plugins Wordpress

Category Web


You have nested <script> tags in your snippet. Try the following snippet, it's reformatted for readability:

    <script id="mcjs">
    try {
        ! function(c, h, i, m, p) {
            m = c.createElement(h), p = c.getElementsByTagName(h)[0], m.async = 1, m.src = i, p.parentNode.insertBefore(m, p)
        }(document, "script", "https://chimpstatic.com/mcjs-connected/js/users/2095bd42340716fa509260a90/406ca4747992260e47dbadffd.js");
    } catch (ex) {}
    </script>

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.