Categories > TinyButStrong general >

How do I include HTML code in my content?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Phillip
Date: 2004-03-06
Time: 13:12

How do I include HTML code in my content?

Hi,
I have a very simple template, a table with header, left menu, content and footer.  In the content row I want to include regular html code.  However when I load the page all I get is the exact code not the formatted code.
Using the example on the TBS site:
Template:
<html>
<body>
  [var.message]
</body>
</html>

Page:
<?

include_once('tbs_class.php');
$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate('template.htm') ;

$message = '
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="500">
  <tr>
    <td width="100%">

    <p class="date">02 March 2004</p>
    <hr class="hline">
    <p class="project">Project:&nbsp;
    <a style="text-decoration: none" target="_blank" href="http://www.blazebolden.com/">
    Blaze Bolden</a></p>
    <p class="newstext" style="text-align:justify">I have been spending all of
' ;
$TBS->Show() ;

?>

So instead of a simple "hello" I'm looking for normal HTML code that uses a link to a CSS.

TIA
Phillip
By: Skrol29
Date: 2004-03-06
Time: 21:05

Re: How do I include HTML code in my content?

Hi Phillip,

The parameter 'htmlconv' can help you.
For example:
[var.message;htmlconv=no]
By: Phillip
Date: 2004-03-06
Time: 21:58

Re: How do I include HTML code in my content?

Skrol29,

I knew it had something to do with that but am too stupid to work it out.

Thank you for creating a really useful piece of code and also for taking the time to reply.

Keep up the good work.

If you ever need anybody to proof read you English translation just send it to:
gaming@planetphillip.com and I will happily read it for you.

Regards
Phillip