remove html tags from text

Mark Wieder mwieder at ahsoftware.net
Fri Sep 8 12:58:14 EDT 2006


Mark-

Friday, September 8, 2006, 6:10:53 AM, you wrote:

> 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

Clever... but it'll fail on

if xyz > 4096 then

maybe replace the two filter lines with

   filter tHtml without "<*>"

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the Use-livecode mailing list