Categories > TinyButStrong general >

html tag is converted by TBS!?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Dede
Date: 2005-03-30
Time: 09:54

html tag is converted by TBS!?

Hi !,

I have a string, in PHP
e.g:

     $GLOBALS["webpage_content"] = "<h2>My Title</h2>
                                                     line 1<br> line 2<br>";

then, in TBS:

....
<td width="148">[var.webpage_content]</td>
....


On browser will apear:
      <h2>My Title</h2>
      line 1<br> line 2<br>

and if we look at the html source code, character '<' and '>' will be automatically replaced with '&lt;'  and  '&gt;'
why TBS made it?
is there any function in TBS that won't replace  'html special character' ?
By: Skrol29
Date: 2005-03-30
Time: 14:08

Re: html tag is converted by TBS!?

I Dede,

By default TBS convert data items into Html.
If you don't want Html convversion on certain fields you can use parameter 'htmlconv' , or load the template with no Html charset (see LoadTemplate() method) if you want no conversion on every fields.