Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: xss_clean() method is in Security, not Input #2075

Merged
merged 2 commits into from
Jan 3, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions user_guide_src/source/libraries/form_validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -911,15 +911,15 @@ Prepping Reference
The following is a list of all the prepping methods that are available
to use:

==================== ========= ===================================================================================================
==================== ========= =======================================================================================================
Name Parameter Description
==================== ========= ===================================================================================================
**xss_clean** No Runs the data through the XSS filtering method, described in the :doc:`Input Class <input>` page.
==================== ========= =======================================================================================================
**xss_clean** No Runs the data through the XSS filtering method, described in the :doc:`Security Class <security>` page.
**prep_for_form** No Converts special characters so that HTML data can be shown in a form field without breaking it.
**prep_url** No Adds "\http://" to URLs if missing.
**strip_image_tags** No Strips the HTML from image tags leaving the raw URL.
**encode_php_tags** No Converts PHP tags to entities.
==================== ========= ===================================================================================================
==================== ========= =======================================================================================================

.. note:: You can also use any native PHP functions that permits one
parameter, like ``trim()``, ``htmlspecialchars()``, ``urldecode()``,
Expand Down Expand Up @@ -1081,4 +1081,4 @@ This function is identical to the **set_checkbox()** function above.
::

<input type="radio" name="myradio" value="1" <?php echo set_radio('myradio', '1', TRUE); ?> />
<input type="radio" name="myradio" value="2" <?php echo set_radio('myradio', '2'); ?> />
<input type="radio" name="myradio" value="2" <?php echo set_radio('myradio', '2'); ?> />