in reply to Re^2: CGI::Vars weirdness
in thread CGI::Vars weirdness

Most likely, you will either need to properly encode your entities for the request (escape() function) or use a Ajax framework that properly encoded the entities for the request.

As an aside, please put your "human" text into <p>...</p> tags and only your code into <code>...</code> tags. That way, it is far better readable for everybody.