Additional regexp handling for UTF-8 strings

This commit is contained in:
MarkBaker
2015-02-15 00:01:01 +00:00
parent 518fbc1d36
commit 538fbcd2e8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -723,7 +723,7 @@ class PHPExcel_Helper_HTML
}
protected function parseTextNode(DOMText $textNode) {
$domText = preg_replace('/\s+/', ' ', ltrim($textNode->nodeValue));
$domText = preg_replace('/\s+/u', ' ', ltrim($textNode->nodeValue));
$this->stringData .= $domText;
$this->buildTextRun();
}