original_string: public function option(Option $option)
      {
          $value = $option->getLabel() ?: htmlentities($option->getValue(), ENT_QUOTES, 'UTF-8');
          $tag = new Tag('option', $value);
  
          if ($option->isSelected()) {
              $tag->setAttribute('selected', 'selected');
          }
  
          return $this->parseTag($tag, $option);
      }
code: public function option(Option $option)
      {
          $value = $option->getLabel() ?: htmlentities($option->getValue(), ENT_QUOTES, 'UTF-8');
          $tag = new Tag('option', $value);
  
          if ($option->isSelected()) {
              $tag->setAttribute('selected', 'selected');
          }
  
          return $this->parseTag($tag, $option);
      }
code_tokens: public function option ( Option $ option ) { $ value = $ option -> getLabel ( ) ? : htmlentities ( $ option -> getValue ( ) , ENT_QUOTES , 'UTF-8' ) ; $ tag = new Tag ( 'option' , $ value ) ; if ( $ option -> isSelected ( ) ) { $ tag -> setAttribute ( 'selected' , 'selected' ) ; } return $ this -> parseTag ( $ tag , $ option ) ; }
docstring: Render an Option
  
  @param Option $option
  @return string
docstring_tokens: Render an Option