Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

print html tags

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
Colino
Smarty Rookie


Joined: 25 Sep 2009
Posts: 11

PostPosted: Tue Sep 28, 2010 5:29 pm    Post subject: print html tags Reply with quote

Hi,
i get from a mysql db a record with html code, when i try to print it, smarty in tpl prints tags too, i need that it will show strong text with <strong>, go to a new line when comes in touch with <br/> and so on

can you help me??
_________________
------------

http://intotheapp.blogspot.com
make everything with free software
Back to top
View user's profile Send private message Visit poster's website
klappi
Guest





PostPosted: Tue Sep 28, 2010 11:20 pm    Post subject: Re: print html tags Reply with quote

Provide example input, output and expected output

Colino wrote:
Hi,
i get from a mysql db a record with html code, when i try to print it, smarty in tpl prints tags too, i need that it will show strong text with <strong>, go to a new line when comes in touch with <br/> and so on

can you help me??
Back to top
Colino
Smarty Rookie


Joined: 25 Sep 2009
Posts: 11

PostPosted: Fri Oct 01, 2010 12:15 pm    Post subject: Reply with quote

problem solved using replace function to convert &lt; and &rt; as < >
_________________
------------

http://intotheapp.blogspot.com
make everything with free software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP