Hi all,
I have come across a problem with displaying data from my database on a web page.
I have an XHTML form that takes data about albums, including a review, and stores it all into a mySQL database.
I have anticipated that when the web page displays the text, any commas, ampersands etc will cause the page not to validate as XHTML strict as they need to use the special character codes i.e. &ersand and so on.
Any ideas how to work around this? I am thinking maybe the PHP string replace functions but this seems a little cumbersome in that i would have to cover every "special" character?
Any help would be greatly appreciated,
Thanks Stuart