Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ampersands in hyperlinks cause W3C validation to fail

I have a reacurring problem. I code nice standards compliant code only to have it fail due to ampersands within some of the hyperlink urls.

Does anyone know of a work around or hack for this.

Thanks

like image 706
Mr.K Avatar asked Dec 01 '22 06:12

Mr.K


1 Answers

I code nice standards compliant code only to have it fail due to ampersands within some of the hyperlink urls.

Unescaped ampersands in URLs (or anywhere else, if they're not part of an HTML entity!) aren't "nice standards compliant code".

Turn them into & and you can accurately claim to have done this.

like image 78
ceejayoz Avatar answered Dec 04 '22 08:12

ceejayoz