remove html tags from text

Mark Smith mark at maseurope.net
Fri Sep 8 08:10:53 CDT 2006


barely tested, but maybe a starting point:

function striptags tHtml
   replace cr with empty in tHtml -- in case of multi-line tags

   replace "<" with cr & "<" in tHtml
   replace ">" with ">" & cr in tHtml

   filter tHtml without "*<*"
   filter tHtml without "*>*"

   return tHtml
end striptags

best,

Mark

On 8 Sep 2006, at 13:52, paolo mazza wrote:

> just a simple task for Revolution!
> How can I remove html tags from text?
>
> i.e.
> from: try  <b> solve<b> this <<httpk.hhkjhlkjlljkl= hkjh> quiz </a>
> to:  try   solve  this   quiz
>
> I should use a wildcard  but ....
>
> filter TEXT with "<*>" does not work.  It is only for a list.
>
> I do not want to put the Text in a field and use the HtmlText.
>
> Ciao
>
> Paolo Mazza
> ********************************************************
> Paolo Mazza
> NEOL SRL
> Via Calatafimi, 16 - 35137 PADOVA
> www.neol.it   paolo.mazza at neol.it
> Tel 049-7386590
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list