• Hello, I am trying to have the following HTML code rendered in a blog entry:

    <div>
    <!--[if IE]>
    <script type="text/javascript">
    if(isSVGControlInstalled()) {
    document.write("<embed class='svgex' src='somesvgfile.svg' />");
    }
    else {
    document.write("<p>Error!</p>");
    }
    </script>
    <noscript>
    <p>Error!</p>
    </noscript>
    <![endif]-->
    <![if !IE]>
    <object type="image/svg+xml" data="somesvgfile.svg">
    <p>Error!</p>
    </object>
    <![endif]>
    </div>

    But the problem is that WordPress seems to be inserting spaces at some points (between the < and the !, for instance). Any help is appreciated to fix this.

  • The topic ‘Pasting complex HTML (conditional comments)’ is closed to new replies.