Need smarty help :(

Soldato
Joined
28 Dec 2004
Posts
7,620
Location
Derry
Any of you clever buggers know a way to strip HTML tags using Smarty but still leave certain tags in place, i.e. I need to strip everything bar say, the <p> tags, I know you can strip all HTML using:

{!$result.fieldname|strip_tags:false}

And I know you can do what I need in PHP but I've not found anything allowing you to specify what fields to leave alone in Smarty, is it possible?

Cheers
 
Back
Top Bottom