Categories > TinyButStrong general >

How to display HTML data

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: vnwebworld
Date: 2006-04-06
Time: 15:38

How to display HTML data

Hi,

I need urgent help.

I store HTML code in MySQL database. Now I use TBS to get data and a template file to display, But it does not display the correct HTML code. This is an example:

Data: "<img height="37" width="114" alt="" src="/Clan/upload_images/Image/ucas1.gif" />For Testing News only."

Display in browser HTML code: "&lt;img height=&quot;37&quot; width=&quot;114&quot; alt=&quot;&quot; src=&quot;/Clan/upload_images/Image/ucas1.gif&quot; /&gt;For Testing News only."

Please help, it is quite urgent for my project.

Thanks
By: Skrol29
Date: 2006-04-06
Time: 15:46

Re: How to display HTML data

Hi,

By default, merged items are converted to Html.
You can tune the Html conversion as you wish for any TBS field using parameter "htmlconv". See the manual for usage of parameter "htmlconv".

Example : [var.x;htmlconv=no]
By: vnwebworld
Date: 2006-04-06
Time: 16:01

Re: How to display HTML data

Thanks a lot for the tip.

Actually I havent used TBS before, my friend just recommend me and I apply it to this project. So I havent had experiences in this.

TBS is very cool :).

Thanks again!!!