Page 1 of 1

XHTML Transitional Validation Problems

Posted: Sat Sep 14, 2002 11:39 am
by Kalar
Here's my problem:

I have a very simple webpage to test some validation issues. It essentially has a link on it. This link points to another website. The URL has ampersands in it, which I know are causing the validation problem.

How do I fix it?

I know that if I can convert all of the ampersands to their character reference, &, then it'll work fine. But, how do you guys manage to do this without having an ereg() convert ALL ampersands? I've tried a simple $content = ereg_replace('&', '&', $content); conversion, but it ends up hitting all of character references, such as ", changing them all into ".

Has anyone had this problem before? It appears that because of the ampersands, XHTML simply will NOT allow for linking to GET-calls on other scripts.

BTW: if you'd like to see the page I'm talking about, then check out: http://www.filminitiative.com/test.html

Posted: Sat Sep 14, 2002 12:12 pm
by Takuma

Code: Select all

<?php
str_replace("&","&",$string);
?>
Try it!