使用PHP excel电子表格库将Html文档写入Excel工作表

我已经成功地使用PHP Spreadsheet_Excel_Writer_Worksheet生成了一个Excel文档,其中包含多个带有索引的工作表。

但我无法在多个工作表中打印html数据。

我正在使用下面的代码链接。

<?php $html = <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div align="center">Hello</div></body></html> $worksheet->write( 0, 0, $html, $formatData); ?> 

当上面的代码尝试,它是块数据的HTML数据,并将其打印为HTML代码不parsing它。