static $already_cleaned = array(); // Nothing to escape for non-string scalars, or for already processed values if (is_bool($value) or is_int($value) or is_float($value) or in_array($value, $already_cleaned, true)) { return $value; }
It looks like you're new here. If you want to get involved, click one of these buttons!