You could encode it with JavaScript :-) Or do the same thing with PHP. The easiest way (but not bulletproof) would be.
$var = '<input type="" name="" value="" />';
but this will fail if you sooner add for example a little JavaScript:
$var = '<input type="" name="" value="" onclick="alert('Father! The sleeper has awaken!')" />';
Functions mentioned in this answer and that MAYBE could be of assistance:
JavaScript:
escape(), unescape()
PHP:
addslashes(), htmlspecialchars()