Jump to content

Invalid data from database


c_pattle

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.