+ 4
What is the use of htmlspecialchars() in php??
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.
+ 14
it escapes html special characters so that you can store data in html files without any worries
although htmlutilities() is reccomended to use
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 â