Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: open
the script is
var m;m=prompt('Member name:');
and the validator does not like the unescaped ampersand... how do i go about escaping it.
a quick googling has not brought up anything i understand, so thanks for your help, Donald
Have you tried replacing the double quotes for single ones?
I thought this might be of interest [w3.org]
Markup Languages Coding Guidelines for Mozilla.org [mozilla.org]
Anyway, I've never understood why (x)html validators try to interpret the code inside <script>-tags. None of their business, imho.
the solution is either to use html comments (invalid) or to mark it as CDATA
// script here
the correct form is -
I've solved the escape-the-ampersand-problem by going over to ';' instead.
In php you have to change two settings -
arg_separator.output = ";"
arg_separator.input = ";"