ID: 16007 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: n/a PHP Version: 4.1.2 New Comment:
Easily done, write your own function 'h($a) { return htmlspecialchars($a);}', your call could then look like '<?=h($var)?>' Previous Comments: ------------------------------------------------------------------------ [2002-03-11 17:55:41] [EMAIL PROTECTED] Often, I'm left writing things like: <input type="text" name="yada" value="<?php echo htmlspecialchars($var) ?>"> It'd be nice if PHP let you write this instead: <input tupe="text" name="yada" value="<?php $var ?>"> with the echo and htmlspecialchars implied. Or at least the echo implied. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16007&edit=1