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
<input id="text" name="text" value="<?php if(isset($_POST['text'])) { echo htmlentities($_POST['text']); } ?>
Is there any way to set it globally for all the textboxes?
In codeigniter we can do that as a part of rules like
$rules['other_gait']="htmlentities|max_length[200]";But thanks for the hint to use htmlentities.