Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Explain the importance of the function htmlentities.

user-image
Question ajoutée par Rehan Farooq , WEB DEVELOPER/DIGITAL MARKETING EXPERT , Upwork
Date de publication: 2016/01/30
islam khalil
par islam khalil , Technical Manager , iCloudit

Convert all applicable characters to HTML entities.

EX :

 

  • '"' (double quote) becomes '"' when ENT_NOQUOTES is not set.
  • "'" (single quote) becomes '&#;' (or ') only when ENT_QUOTES is set.
  • '<' (less than) becomes '&lt;'
  • '>' (greater than) becomes '&gt;'

This could be used to prevent XSS attak for example .

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?