mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2025-04-02 04:46:18 +03:00
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
1 changed files with 1 additions and 0 deletions
|
@ -1060,6 +1060,7 @@ class PHPExcel_Writer_HTML implements PHPExcel_Writer_IWriter {
|
|||
array($this, 'formatColor')
|
||||
);
|
||||
}
|
||||
$cellData = htmlspecialchars($cellData);
|
||||
if ($pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getFont()->getSuperScript()) {
|
||||
$cellData = '<sup>'.$cellData.'</sup>';
|
||||
} elseif ($pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getFont()->getSubScript()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue