strip html

sims sims at ezpzapps.com
Fri Aug 2 12:31:01 EDT 2002


If I use the following script on a simple web page to strip
html it works with no problem.

If I try this with cnn.com or nytimes.com it hangs.

Can anyone help me out with fixing it or
suggesting a better way to strip html"?

(I do not want to use the "set the  htmlTEXT" trick)

atb

sims



on mouseUp
   put fld "cnn" into data
    repeat for each line aLine in data
      repeat while matchchunk(aLine,"<*>")
        delete char offset("<",aLine) to offset(">",aLine) of aLine
      end repeat
      put aLine & return after outData
    end repeat
put outData into fld "cnn"
end mouseUp
___________________________________________

    http://EZPZapps.com         info at EZPZapps.com
       Software - Internet Development - Consulting



More information about the Use-livecode mailing list