On 3/22/06, yguaba@xxxxxxxxxxxx <yguaba@xxxxxxxxxxxx> wrote:
> I'm not sure I understand your problem.
I need ;
<script type="javascript">
// <![CDATA[ <----------- It's this first '//' what I'm after
javascript here ...
// ]]>
</script>
> If this is the case, there's nothing to be escaped: you just take the
> contents of the CDATA section and output it as plain text between two
> SCRIPT tags.
No, that's not good enough; the output I want to be valid XHTML 1.0
Strict, and as such it needs to live in a CDATA section, but
best-practice also wants single-line comments to preced the CDATA
element, as demonstrated above.
Alex
--
"Ultimately, all things are known because you want to believe you know."
- Frank Herbert
__ http://shelter.nu/ __________________________________________________
|