2 users online. Create an account or sign in to join them.Users

Search

I have an IE7-workaround in my site as such:

<!--[if lte IE 7]>
    <link rel="stylesheet" type="text/css" media="screen,tv,projection" href="css/ie7.css" />
<![endif]-->

In my template I have it like this:

<![CDATA[
    <!--[if lte IE 7]>
        <link rel="stylesheet" type="text/css" media="screen,tv,projection" href="css/ie7.css" />
    <![endif]-->
]]>

But when I do this, the html-code gets converted to readable entities instead of leaving the brackets intact. So my source looks like this:

&lt;!--[if lte IE 7]&gt;
    &lt;link rel="stylesheet" type="text/css" media="screen,tv,projection" href="css/ie7.css" /&gt;
&lt;![endif]--&gt;

How can I leave my brackets intact for my IE7-Hack?

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details