[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace Box\Spout\Common\Escaper; 4 5 /** 6 * Class ODS 7 * Provides functions to escape and unescape data for ODS files 8 * 9 * @package Box\Spout\Common\Escaper 10 */ 11 class ODS implements EscaperInterface 12 { 13 /** 14 * Escapes the given string to make it compatible with XLSX 15 * 16 * @param string $string The string to escape 17 * @return string The escaped string 18 */ 19 public function escape($string) 20 { 21 return htmlspecialchars($string, ENT_QUOTES); 22 } 23 24 /** 25 * Unescapes the given string to make it compatible with XLSX 26 * 27 * @param string $string The string to unescape 28 * @return string The unescaped string 29 */ 30 public function unescape($string) 31 { 32 return htmlspecialchars_decode($string, ENT_QUOTES); 33 } 34 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |