form_prep()

form_prep($str)

Parameters:
  • $str (string) – Value to escape
Returns:

Escaped value

Return type:

string

Allows you to safely use HTML and characters such as quotes within form elements without breaking out of the form.

Note

If you use any of the form helper functions listed in this page the form values will be prepped automatically, so there is no need to call this function. Use it only if you are creating your own form elements.

Note

This function is DEPRECATED and is just an alias for common function html_escape() - please use that instead.

doc_CodeIgniter
2016-10-15 16:32:20
Comments
Leave a Comment

Please login to continue.