You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andrew Arrow <on...@gmail.com> on 2005/03/01 04:37:17 UTC
CDATA escape
Is there anyway to have a script file like this? i.e. can I somehow
escape the ]]> and not confuse the CDATA tag?
<script>
<body>
<![CDATA[
function test() {
var name=' ]]>';
}
]]>
</body>
</script>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: CDATA escape
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
how about name = ' ]' + ']'? :)
On Feb 28, 2005, at 10:37 PM, Andrew Arrow wrote:
> Is there anyway to have a script file like this? i.e. can I somehow
> escape the ]]> and not confuse the CDATA tag?
>
> <script>
> <body>
>
> <![CDATA[
> function test() {
> var name=' ]]>';
> }
> ]]>
> </body>
>
> </script>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org