Question: The program above is supposed to sanitize an input (to avoid XSS). Explain why it is problematic and demonstrate with a correct code. Non-compliant code

The program above is supposed to sanitize an input (to avoid XSS). Explain why it is problematic and demonstrate with a correct code.
Non-compliant code example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
