Remove HTML function

Terry Vogelaar terry at discovery.nl
Sat May 18 03:14:01 EDT 2002


> Does anyone have a script to removing HTML from a string/chunk/whole file?

This one is a bit weird because it needs a field to put it in temporarily,
but it is fast and accurate:

on mouseUp
  set the htmlText of fld 1 to "<I>a piece of</I> <B>HTML</B> code"
  put fld 1 into anyVar
end mouseUp

"<I>a piece of</I> <B>HTML</B> code" could be any container, even a complete
source of a HTML file. 'anyVar' just contains the plain text without any
tags.

Terry
http://www.discovery.nl





More information about the use-livecode mailing list