1
0
mirror of https://github.com/shuchkin/simplexlsxgen.git synced 2023-08-10 21:12:59 +03:00

debug example

This commit is contained in:
Sergey Shuchkin
2020-07-14 17:19:58 +06:00
parent 72b9f420d7
commit 8a38813b12
2 changed files with 4 additions and 3 deletions

View File

@@ -208,10 +208,10 @@ class SimpleXLSXGen {
$cs = 5; // [22] m/d/yy h:mm
} elseif ( mb_strlen( $v ) > 160 ) {
$ct = 'inlineStr';
$cv = htmlentities( $v, ENT_QUOTES );
$cv = str_replace(['&','<','>'],['&amp;','&lt;','&gt;'], $v);
} else {
$ct = 's'; // shared string
$v = htmlentities($v, ENT_QUOTES);
$v = str_replace(['&','<','>'],['&amp;','&lt;','&gt;'], $v);
$cv = array_search( $v, $SI, true );
if ( $cv === false ) {
$SI[] = $v;