GH-514 HTML Reader incorrectly converts some UTF-8 string cells to FALSE after regexp space trim
This commit is contained in:
parent
31aa953c0b
commit
518fbc1d36
|
@ -217,7 +217,7 @@ class PHPExcel_Reader_HTML extends PHPExcel_Reader_Abstract implements PHPExcel_
|
||||||
{
|
{
|
||||||
foreach ($element->childNodes as $child) {
|
foreach ($element->childNodes as $child) {
|
||||||
if ($child instanceof DOMText) {
|
if ($child instanceof DOMText) {
|
||||||
$domText = preg_replace('/\s+/', ' ', trim($child->nodeValue));
|
$domText = preg_replace('/\s+/u', ' ', trim($child->nodeValue));
|
||||||
if (is_string($cellContent)) {
|
if (is_string($cellContent)) {
|
||||||
// simply append the text if the cell content is a plain text string
|
// simply append the text if the cell content is a plain text string
|
||||||
$cellContent .= $domText;
|
$cellContent .= $domText;
|
||||||
|
|
Loading…
Reference in New Issue