GH-514 HTML Reader incorrectly converts some UTF-8 string cells to FALSE after regexp space trim

This commit is contained in:
MarkBaker 2015-02-14 23:52:57 +00:00
parent 31aa953c0b
commit 518fbc1d36
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class PHPExcel_Reader_HTML extends PHPExcel_Reader_Abstract implements PHPExcel_
{
foreach ($element->childNodes as $child) {
if ($child instanceof DOMText) {
$domText = preg_replace('/\s+/', ' ', trim($child->nodeValue));
$domText = preg_replace('/\s+/u', ' ', trim($child->nodeValue));
if (is_string($cellContent)) {
// simply append the text if the cell content is a plain text string
$cellContent .= $domText;