Jump to content

Does strip_tags() also remove HTML character codes?


DWilliams

Recommended Posts

Like © or ὠ and so forth?

 

I ask because on one of my projects, a particular user keeps copy & pasting stuff into a text box. When saved to the database (after going through mysql_real_escape_string() and trim()), occasionally ὠ gets appended to the data in plain text. I assume this is some sort of invisible formatting character or something that they're accidentally highlighting.

 

Will strip_tags() suffice here? If not, how can I remove these codes?

 

I'm new to having projects I develop being used by an audience (in this case, our office). I'm shocked at how fast users can break things in ways I never would have thought possible

Why would ὠ break anything?

 

It doesn't "break" it per-se, but since this text later gets printed on an envelope, tagged on codes are not acceptable. For reference, it doesn't show up as the character itself, it shows up as plainly "ὠ"

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.