encodeTextForODT() public static method

Wrapper function to consistently encode text where appropriate for template functionality
public static encodeTextForODT ( $text ) : string
$text
return string
Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 public function setCellData($row, $col, $cellData)
 {
     $this->data['rows'][$row - 1]['cells'][$col - 1]['data'] = ODTDataHandler::encodeTextForODT($cellData);
 }