Categories > TinyButStrong general >

How to pass HTML content from PHP to HTML Template?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: MarceloReborn
Date: 2009-09-15
Time: 19:14

How to pass HTML content from PHP to HTML Template?

Hi guys!

I really need to pass a variable with html content to template, but the var returns a text!

Ex.:
::index.php::
$elem = '<div><a href="lol.php"></div>';

index.html
[var.elem]

It returns just the text string, not my div and anchor.
By: tonier
Date: 2009-09-16
Time: 06:10

Re: How to pass HTML content from PHP to HTML Template?

Use htmlconv parameters ...

[var.elem;htmlconv=no]

Or read TBS manual :)
By: MarceloReborn
Date: 2009-09-16
Time: 14:44

Re: How to pass HTML content from PHP to HTML Template?

OMG!  LOL

Thanks!