sanitize (function)

Purpose:

Runs PHP htmlentities on a string and returns it

Example:

$script = sanitize("");

Data Type(s):

$script = sanitize(string);

Location:

users/helpers/helpers.php

Details:

Performs basic htmlentities sanitization with the options of

ENT_QUOTES, 'UTF-8'
This function is old and Input::sanitize from the Input class is preferred.