Jump to content

Recommended Posts

there are many threads that dicuss htmlentities vs htmlspecialchars. I know what each one does but would like to gather some people opinions on which should used it cases.

 

Would you prefer htmlentities vs htmlspecialchars when accepting user input such as textareas that support bbcode via javascript, or inputs in general.

 

Would you prefer to use htmlentities vs htmlspecialchars when using fckeditor. Fckeditor is only used by administrators.

 

My site will using a lot of input boxes for photo gallerys, blogs and much more so that is the reason why I would like to get some ideas. htmlentities/htmlspecialchars will be tied with mysql_real_escape_string along with other security checks.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.