convert html characters
<?php // filter html tags function html ($text) { return htmlspecialchars($text, ENT_QUOTES, 'UTF-8'); } function htmlout($text) { echo html($text); } // USE: <input type="text" value="<?php htmlout($name) ; ?>">