Strip html with smarty
Posted: Fri Sep 29, 2006 8:15 am
Hi,
I am a newbie in smarty. I have been trying to learn a few things up from the resources available in the net. But this is really bothering me for the last few days now as I cant do this.
What I have is this:
{capture name=cats}{list_cats}{/capture}
and what I get ($smarty.capture.cats) from this is ...
<li><a href="http://www.example.com/cat1.html" title="Category one">One</a></li>
<li><a href="http://www.example.com/cat2.html" title="Category two">Two</a></li>
Now what am trying to do is scoop the One and Two i.e. strip all the other stuff. How shall I do that only with smarty or thruogh Java Script? Please help ..
TIA
I am a newbie in smarty. I have been trying to learn a few things up from the resources available in the net. But this is really bothering me for the last few days now as I cant do this.
What I have is this:
{capture name=cats}{list_cats}{/capture}
and what I get ($smarty.capture.cats) from this is ...
<li><a href="http://www.example.com/cat1.html" title="Category one">One</a></li>
<li><a href="http://www.example.com/cat2.html" title="Category two">Two</a></li>
Now what am trying to do is scoop the One and Two i.e. strip all the other stuff. How shall I do that only with smarty or thruogh Java Script? Please help ..
TIA