Question: Why do we need to use the PHP function htmlspecialchars when printing user's input? Question 1 0 options: to display the output in valid HTML

Why do we need to use the PHP function htmlspecialchars when printing user's input?
Question 10 options:
to display the output in valid HTML code
to avoid hackers run source code on the server
to automatically apply the correct CSS style to the output text
To save the output in the global variable $_OUTPUT()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!