You are here

public function PHPExcel_Shared_XMLWriter::writeRawData in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/XMLWriter.php \PHPExcel_Shared_XMLWriter::writeRawData()

* Fallback method for writeRaw, introduced in PHP 5.2 * *

Parameters

string $text: * @return string

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/XMLWriter.php, line 115

Class

PHPExcel_Shared_XMLWriter
PHPExcel_Shared_XMLWriter

Code

public function writeRawData($text) {
  if (is_array($text)) {
    $text = implode("\n", $text);
  }
  if (method_exists($this, 'writeRaw')) {
    return $this
      ->writeRaw(htmlspecialchars($text));
  }
  return $this
    ->text($text);
}