for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Box\Spout\Common\Escaper;
use Box\Spout\Common\Singleton;
/**
* Class ODS
* Provides functions to escape and unescape data for ODS files
*
* @package Box\Spout\Common\Escaper
*/
class ODS implements EscaperInterface
{
use Singleton;
* Escapes the given string to make it compatible with XLSX
* @param string $string The string to escape
* @return string The escaped string
public function escape($string)
return htmlspecialchars($string, ENT_QUOTES);
}
* Unescapes the given string to make it compatible with XLSX
* @param string $string The string to unescape
* @return string The unescaped string
public function unescape($string)
return htmlspecialchars_decode($string, ENT_QUOTES);