mirror of
https://github.com/shuchkin/simplexlsxgen.git
synced 2023-08-10 21:12:59 +03:00
1.0.22
This commit is contained in:
@ -659,6 +659,8 @@ class SimpleXLSXGen {
|
||||
return $this;
|
||||
}
|
||||
public function esc( $str ) {
|
||||
return str_replace( ['&', '<', '>', "\x03"], ['&', '<', '>', ''], $str );
|
||||
// XML UTF-8: #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
|
||||
// but we use fast version
|
||||
return str_replace( ['&', '<', '>', "\x00","\x03","\x0B"], ['&', '<', '>', '', '', ''], $str );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user