Is it necessary to use htmlspecialchars after calling urlencode like this code:
<a href="file.php?var=<?php echo htmlspecialchars(urlencode($var)) ?>">Click here</a>
Or can I just write this:
<a href="file.php?var=<?php echo urlencode($var) ?>">Click here</a>
source https://stackoverflow.com/questions/73533540/do-i-need-to-use-htmlspecialchars-after-using-urlencode-inside-href-or-src-attri
No comments:
Post a Comment