Categories > TinyButStrong general >

print HTML tags

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Michel
Date: 2006-11-14
Time: 09:59

print HTML tags

Hi.

How can I print the following variable without TBS changing my tags?
Example :

1. in my php script

$sample = 'This is quite <strong>heavy</strong>.';

2. in my html template

<p>[var.sample]</p>

I want to keep the tag <strong >; by default TBS convert the < and > signs to &lt; and &gt;

Thanks a lot.
By: Skrol29
Date: 2006-11-14
Time: 10:38

Re: print HTML tags

[var.sample;htmlconv=no]
By: Michel
Date: 2006-11-14
Time: 12:14

Re: print HTML tags

Super.

Can I make htmlconv=no in a global way?
Not only for a single var but for the whole site?

Thanks again.

Michel.
By: Skrol29
Date: 2006-11-14
Time: 14:53

Re: print HTML tags

There is a spécial argument for method LoadTemplate() for that.
It enables you to specify a non HTML template. Thus, merged Items won't be converted.
By: Michel
Date: 2006-11-15
Time: 10:19

Re: print HTML tags

$TBS->LoadTemplate('myTemplate.html', False) ;

Which are the incovenients of using this solution?