Jump to content

Cases of htmlentities over htmlspecialchars


freelance84

Recommended Posts

Does anyone have an example of when htmlentities would be used over htmlspecialchars?

 

Read the man pages that you posted. htmlspecialchars() only does 5 characters,  htmlentities() does all characters that have an HTML character entity equivalent.

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.