="reference internal" href="../libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> has a
<code class="docutils literal"><span class="pre">prep_for_form()</span></code> method, which is/can also be used as a rule in
<code class="docutils literal"><span class="pre">set_rules()</span></code> to automatically perform HTML encoding on input data.</p>
<p>Automatically encoding input (instead of output) data is a bad practice in
the first place, and CodeIgniter and PHP itself offer