function e($value) { return htmlspecialchars($value, ENT_QUOTES, 'UTF-8', false); }
<input type="text" value="<?=e($_GET['q']??'')?>">
No comments:
Post a Comment