home

Archive for the ‘Programming’ Category

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 &amp; to &amp; so that it passes validation
ini_set('arg_separator.output''&amp;');

?>

This will properly convert ampersands to & in the URI.