Wrapper function to consistently encode text where appropriate for template functionality
public static encodeTextForODT ( $text ) : string | ||
$text | ||
return | string |
public function __construct($name, $data = null) { $this->data['element-type'] = 'simple-text'; $this->data['name'] = $name; if ($data !== null) { $this->data['data'] = ODTDataHandler::encodeTextForODT($data); } }
public function setCellData($row, $col, $cellData) { $this->data['rows'][$row - 1]['cells'][$col - 1]['data'] = ODTDataHandler::encodeTextForODT($cellData); }