Reputation: 21
I am using phpExcel
library.I have an export script working fine which fetch all data from a MySQL table.Now the MySQL table has a row called product_info
which contains HTML tags and styles.
Now how can I render those styles for that just one row, which contain HTML elements like <font color="Red">Hello</font>
. This HTML tags varies. So how can I render them?
Please advise
Upvotes: 2
Views: 1223
Reputation: 212522
You can't. You could parse the HTML markup and use it to build a rich text object, that you could then set as the content of a cell; but there is no conversion from HTML to rich text built into PHPExcel itself, so you'd need to do that by hand.
Upvotes: 2