DebugPHP
DebugPHP

Reputation: 21

PHPExcel Render html tags in mysql table row

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

Answers (1)

Mark Baker
Mark Baker

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

Related Questions