original_string: public function getHtml(string $text) : string
      {
          $textAsHtml = htmlspecialchars($text, ENT_QUOTES);
          $textWithNewLines = nl2br($textAsHtml);
  
          $tokenized = $this->tokenizer->tokenize($textWithNewLines);
          $html = $this->bbCode->format($tokenized);
  
          return $html;
      }
code: public function getHtml(string $text) : string
      {
          $textAsHtml = htmlspecialchars($text, ENT_QUOTES);
          $textWithNewLines = nl2br($textAsHtml);
  
          $tokenized = $this->tokenizer->tokenize($textWithNewLines);
          $html = $this->bbCode->format($tokenized);
  
          return $html;
      }
code_tokens: public function getHtml ( string $ text ) : string { $ textAsHtml = htmlspecialchars ( $ text , ENT_QUOTES ) ; $ textWithNewLines = nl2br ( $ textAsHtml ) ; $ tokenized = $ this -> tokenizer -> tokenize ( $ textWithNewLines ) ; $ html = $ this -> bbCode -> format ( $ tokenized ) ; return $ html ; }
docstring: Transform string to html escaped string with applied bb-code.
  
  @param string $text
  @return string
docstring_tokens: Transform string to html escaped string with applied bb - code .