Hi Erik,

You wrote:

... escape it using & which I believe *should* work.

but Genau Lopes Jr. wrote:

I tried switch the javascript ampersands , by ASCII code,
but the js didn�t works.
Anyone knows how to switch "&&" for a valid character?

Which is about what I was suspecting--its one thing to give the user agent an entity when what you want is a text rendering of a character and quite another to use an entity where the program must treat it as part of your coding. BTW, do you see any difference in this matter between & and &?

You wrote:

You can also add the CDATA to the content of the script:
<script type="text/javascript">
<!-- Hide script
  //<![CDATA[
    if(document.getElementById&&...display='block';
  //]]> End script hiding -->
</script>

I've seen this use of the CDATA approach mentioned previously, but didn't know for sure what was afoot. I suspect it's the best way to go with this.

Thanks, Erik and Genau, for the clarification.

Regards,

Gene Falck
[EMAIL PROTECTED]


****************************************************** The discussion list for http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to