original_string: protected function htmlEntityEncode($item)
      {
          if (is_array($item)) {
              array_walk_recursive($item, function (&$value) {
                  $value = htmlentities($value);
              });
          } else {
              $item = htmlentities($item);
          }
  
          return $item;
      }
code: protected function htmlEntityEncode($item)
      {
          if (is_array($item)) {
              array_walk_recursive($item, function (&$value) {
                  $value = htmlentities($value);
              });
          } else {
              $item = htmlentities($item);
          }
  
          return $item;
      }
code_tokens: protected function htmlEntityEncode ( $ item ) { if ( is_array ( $ item ) ) { array_walk_recursive ( $ item , function ( & $ value ) { $ value = htmlentities ( $ value ) ; } ) ; } else { $ item = htmlentities ( $ item ) ; } return $ item ; }
docstring: Convert characters to HTML entities recursively.
  
  @param array|string $item
  
  @return mixed
docstring_tokens: Convert characters to HTML entities recursively .