strip html

sims sims at
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 or 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)



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
___________________________________________         info at
       Software - Internet Development - Consulting

More information about the Use-livecode mailing list