Ampersand preventing validation?
Thursday, October 12th, 2006
I know one of the biggest annoyances in programming in php and (x)html is trying to pass the W3C validation. To help prevent URIs formed from php functions from breaking validation, place the following code in your index.php file.
<?php
// Sets & to & so that it passes validation
ini_set('arg_separator.output', '&');
?>
This will properly convert ampersands to & in the URI.
I know one of the biggest annoyances in programming in php and (x)html is trying to pass the W3C validation. To help prevent URIs formed from php functions from breaking validation, place the following code in your index.php file.
<?php
// Sets & to & so that it passes validation
ini_set('arg_separator.output', '&');
?>
This will properly convert ampersands to & in the URI.


Feel free to join in