+ 4

What is the use of htmlspecialchars() in php??

6th May 2019, 1:15 PM
Priya Kandu
Priya Kandu - avatar
4 Answers
+ 2
The htmlspecialchars function in PHP is used to convert 5 characters into corresponding HTML entities where applicable. It is used to encode user input on a website so that users cannot insert harmful HTML codes into a site.
6th May 2019, 1:25 PM
Abdulsalam 🇳🇬 Ishaq
Abdulsalam 🇳🇬 Ishaq - avatar
+ 14
it escapes html special characters so that you can store data in html files without any worries although htmlutilities() is reccomended to use
14th May 2019, 7:22 PM
Prashanth Kumar
Prashanth Kumar - avatar
0
Priya Kandu https://www.sololearn.com/discuss/1316935/?ref=app Your question description contains the answer , hence it's no longer a question. Do follow the rules in the link below 👇 Best ✌
6th May 2019, 1:48 PM
Dlite
Dlite - avatar