<<< Previous question <<< Question ID#0415.md >>> Next question >>>
Using htmlspecialchars() is useful for preventing malicious JavaScript from executing, as well as for generating valid HTML. What is the output of the following script?
$str = <<<EOF
<p>me & you
EOF;
echo htmlspecialchars($str);
- A) <p>me & you
- B)
me & you
- C)
me & you
- D)
me & you
Answer
Answer: A