Set htmlspecialcharacters for text fields
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@91573 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
1b642d4e7d
commit
92461ae067
|
@ -1060,6 +1060,7 @@ class PHPExcel_Writer_HTML implements PHPExcel_Writer_IWriter {
|
||||||
array($this, 'formatColor')
|
array($this, 'formatColor')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
$cellData = htmlspecialchars($cellData);
|
||||||
if ($pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getFont()->getSuperScript()) {
|
if ($pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getFont()->getSuperScript()) {
|
||||||
$cellData = '<sup>'.$cellData.'</sup>';
|
$cellData = '<sup>'.$cellData.'</sup>';
|
||||||
} elseif ($pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getFont()->getSubScript()) {
|
} elseif ($pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getFont()->getSubScript()) {
|
||||||
|
|
Loading…
Reference in New Issue