Categories > TinyButStrong general >

Is there a way to strip out HTML tags ?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Phil Lee
Date: 2007-09-14
Time: 14:22

Is there a way to strip out HTML tags ?

On my video site I'm pulling a list of tags and want to add these to the meta keywords tag.  Unfortunately this includes HTML as well.  Is there a way to tell TBs to strip out the HTML tags ?

Thanks

Phil
By: Skrol29
Date: 2007-09-14
Time: 16:09

Re: Is there a way to strip out HTML tags ?

Hi,

This is not in native with TBS. But you can code your own function which cleans tags up, and then use this function with parameter "onformat".
By: Phil Lee
Date: 2007-09-14
Time: 17:02

Re: Is there a way to strip out HTML tags ?

Ah OK thank you.  I just didn't want to re-invent the wheel if such as function existed.

Thanks