Categories > TinyButStrong general >

Help display variable

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: thuc
Date: 2005-12-23
Time: 03:08

Help display variable

My code here:

<?php
include_once('tbs_class.php') ;
$x = 'Hello World<br> Hello Scroll29 <br> I am here<br>';
$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate('askTBS.html') ;
$TBS->Show() ;
?>
//--------------
<html>
<head>
<title>TinyButStrong</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="tbs_us_examples_0styles.css" rel="stylesheet" type="text/css">
</head>
<body>

<div align="center" class="title-page">
  [var.x]
</div>

</body>
</html>
//-----------------
And this is result:
Hello World<br> Hello Scroll29 <br> I am here<br>
//-----------------
But I like to display

Hello World
Hello Scroll29
I am here

How can I do? Help me, thank.
By: Maz
Date: 2005-12-23
Time: 20:19

Re: Help display variable

Use [var.x;htmlconv=no] instead of [var.x]
By: thuc
Date: 2005-12-24
Time: 02:36

Re: Help display variable

thank you, very much!