Jump to content

best way to santize html editor POST


1internet

Recommended Posts

strip_tags() to remove markup you don't want. If you don't trust the user then you have to go even more complex by looking for malicious attributes: I could put a just fine, but I could also put a

Click to Like this page!

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.