Escaping ']>'

Posts   
 
    
Cadmium avatar
Cadmium
User
Posts: 153
Joined: 19-Sep-2003
# Posted on: 15-Aug-2006 20:33:58   

I'm trying to write the following in an lpt template:


<!--[if lt ie 7]>

Which, unfortunatly clashes with <[]> and ends up writting the ">" at the very end of the file. I've tried


<!--[if lt ie 7] >

But that doesn't work in IE (these are IE conditional statements)

and


<!--[if lt ie 7<%="] >"%>

But that just writes out


<!--[if lt ie 7=""

So, how can I escape "]>"?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 16-Aug-2006 10:10:33   

]> is indeed a token in lpt templates. You could create a function which does: return "]" + ">";

and you then do: <%=EmitWickedEndMarker()%>

Frans Bouma | Lead developer LLBLGen Pro
Cadmium avatar
Cadmium
User
Posts: 153
Joined: 19-Sep-2003
# Posted on: 16-Aug-2006 19:43:05   

Otis wrote:

]> is indeed a token in lpt templates. You could create a function which does: return "]" + ">";

and you then do: <%=EmitWickedEndMarker()%>

I found another way last night too

<%= "]" + ">"%> smile Together they fail, but separatly they work.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 16-Aug-2006 20:42:14   

Heh simple_smile

"Together they fail, but separatly they work" -- Newsweek reporter on J-Lo & Ben Affleck

Frans Bouma | Lead developer LLBLGen Pro