Categories > OpenTBS with DOCX >

render html tags from database field into docx

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: noiq
Date: 2012-06-08
Time: 23:31

render html tags from database field into docx

Hello,

First of all, wonderfull peace of software!
But I have a question. Is it possible to render html tags from a database text field into a docx file?
For example:
I have a field content in a database and use it in tbs as follows:
$my_content = $fields->content
The value of $fields->content is "<H1>Title</H1><B>name</b>"

When I generate a document all vars work fine but the tags with html in it are rendered as normal text without formatting.

Namasté
By: Skrol29
Date: 2012-06-09
Time: 20:47

Re: render html tags from database field into docx

Hi Noiq,

The problem has been discussed here:
http://www.tinybutstrong.com/forum.php?thr=2885