original_string: protected function encodeValues(&$values)
      {
          if (is_array($values)) {
              foreach ($values as &$value) {
                  $value = $this->encodeValues($value);
              }
          } elseif (is_float($values)) {
              $values = Common::forceDotAsSeparatorForDecimalPoint($values);
          } elseif (is_string($values)) {
              $values = htmlentities($values, ENT_COMPAT, 'UTF-8');
              $values = str_replace('$', '&#36;', $values);
          }
          return $values;
      }
code: protected function encodeValues(&$values)
      {
          if (is_array($values)) {
              foreach ($values as &$value) {
                  $value = $this->encodeValues($value);
              }
          } elseif (is_float($values)) {
              $values = Common::forceDotAsSeparatorForDecimalPoint($values);
          } elseif (is_string($values)) {
              $values = htmlentities($values, ENT_COMPAT, 'UTF-8');
              $values = str_replace('$', '&#36;', $values);
          }
          return $values;
      }
code_tokens: protected function encodeValues ( & $ values ) { if ( is_array ( $ values ) ) { foreach ( $ values as & $ value ) { $ value = $ this -> encodeValues ( $ value ) ; } } elseif ( is_float ( $ values ) ) { $ values = Common :: forceDotAsSeparatorForDecimalPoint ( $ values ) ; } elseif ( is_string ( $ values ) ) { $ values = htmlentities ( $ values , ENT_COMPAT , 'UTF-8' ) ; $ values = str_replace ( '$' , '&#36;' , $ values ) ; } return $ values ; }
docstring: Encode HTML entities
  
  @param mixed $values
  @return mixed
docstring_tokens: Encode HTML entities