Styled text challenge...
briany at qldlearning.com
Thu Feb 12 00:52:47 CST 2004
The following all works for me:
## render some HTML in a field
set the htmlText of fld 1 to url "http://www.somsite.com"
## get the HTML source
put the htmlText of fld 1 into fld 2
## get the RTF equivalent source
put the rtfText of fld 1 into fld 3
## re-render as RTF in a different field
set the rtfText of fld 4 to fld 3
The conversion is not perfect, but I'm not sure what else is desired-
the htmlText is not a browser, and converting from HTML->RTF will never
be a lossless conversion as they are not equivalent formats.
>>> I could still be mixed up on what you want.
>> i grab an html page off the web, display it in a field
>> I also display the source and would like finaly to have the
>> html styled text to be outputed to a styled text field.
More information about the use-livecode