& and Validations

Associate
Joined
18 Oct 2002
Posts
249
Location
Glasgow
Hi

I am reading in a txt file using PHP (displaying my audioscrobbler data until i get round to using XML) and it happend to have an & in it which is plonked into my html. It causes havoc with validation especially CSS where it breaks it. Any suggestions for getting round this.

Site is www.dmce.co.uk
 
Thanks. htmlspecialchars() done the trick in this case but now i am aware of soving the issue.

Helpful as usual :)
 
Back
Top Bottom