Communiquez avec les autres et partagez vos connaissances professionnelles

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

Suivre

What is the use of the function htmlentities?

user-image
Question ajoutée par Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited
Date de publication: 2016/01/13
Mohammad Sheraz Javed
par Mohammad Sheraz Javed , PHP Backend Engineer , Arpatech (Pvt) Ltd (Pakistan

"htmlentities" convert/translate html characters to their equivalent entities:

for example:

 

$str "A 'quote' is <b>bold</b>";echo htmlentities($str);

 

// Outputs: A 'quote' is &lt;b&gt;bold&lt;/b&gt;

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