library/core/class.form.php
public function EscapeString($String) {
      $Array = FALSE;
      if (substr($String, -2) == '[]') {
         $String = substr($String, 0, -2);
         $Array = TRUE;
      }
      $Return = urlencode(str_replace(' ', '_', $String));
      if ($Array === TRUE) $Return .= '[]';

      return str_replace('.', '-dot-', $Return);
   }
public function EscapeString($String) {
      $Array = FALSE;
      if (substr($String, -2) == '[]') {
         $String = substr($String, 0, -2);
         $Array = TRUE;
      }
      $Return = urlencode(str_replace(' ', '_', $String));
      if ($Array === TRUE) $Return .= '[]';

      return str_replace('.', '-dot-', $Return);
   }
public function EscapeString ( $ String ) { $ Array = FALSE ; if ( substr ( $ String , - 2 ) == '[]' ) { $ String = substr ( $ String , 0 , - 2 ) ; $ Array = TRUE ; } $ Return = urlencode ( str_replace ( ' ' , '_' , $ String ) ) ; if ( $ Array === TRUE ) $ Return .= '[]' ; return str_replace ( '.' , '-dot-' , $ Return ) ; }
Encodes the string in a php-form safe-encoded format.

@param string $String The string to encode.
@return string
Encodes the string in a php - form safe - encoded format .