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. 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 Link to comment https://forums.phpfreaks.com/topic/234526-invalid-data-from-database/#findComment-1205285 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.