c_pattle Posted April 23, 2011 Share Posted April 23, 2011 I have a form that allows users to submit content to my site. When they submit content they sometimes enter characters such as £ and &. This means that when I fetch this data from the database my html won't validate. Is there an easy way to replace all these characters with the proper codes such as £ and &? Thanks for any help. Quote Link to comment https://forums.phpfreaks.com/topic/234526-invalid-data-from-database/ Share on other sites More sharing options...
Pikachu2000 Posted April 23, 2011 Share Posted April 23, 2011 htmlentities Quote Link to comment https://forums.phpfreaks.com/topic/234526-invalid-data-from-database/#findComment-1205285 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.