code: public function writeRawData($text)
      {
          if (is_array($text)) {
              $text = implode("\n", $text);
          }
  
          return $this->writeRaw(htmlspecialchars($text));
      }
docs: Wrapper method for writeRaw.
  
  @param string|string[] $text
  
  @return bool