What is the use of htmlspecialchars in php?
Answer / Sukhvir Singh
In PHP, htmlspecialchars() function converts special characters to HTML entities. This is used for displaying user-generated data (like user input) on a webpage to prevent any potential issues caused by those characters such as XSS attacks.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to invoke a user function?
how can refresh current page automatically, without press any button and anchor tag.
Do you know how to get the ip address of the client?
Explain me the difference between include and require?
What is the most common http method?
How does csrf attack work?
Tell me how can we pass the variable through the navigation between the pages?
What is php dependency injection?
What are the advantages of php mysql?
Explain setcookie() function in php?
What is register_globals in php?
6 Answers Castling IT, HCL, Intel Soft Solutions, Millennium,
What is php and what does it do?