title: php-codeigniter - HTMLENTITIES in displaying value of textbox
body: <p>Through out my application, i wanted to display the value htmlentities(str), since there is not restriction for single or double or any special char.
  Instead of using or converting by htmlentities(str),like </p>
  
  <p><CODE>
  <code>&lt;input id="text" name="text" value="&lt;?php if(isset($_POST['text'])) { echo htmlentities($_POST['text']); } ?&gt;</code>
  </code></p>
  
  <p>Is there any way to set it globally for all the textboxes?</p>