HOw to get htmltext from the field to display in another field
J. Landman Gay
jacque at hyperactivesw.com
Sun Sep 20 17:07:10 EDT 2020
On 9/20/20 3:20 PM, Mark Wieder via use-livecode wrote:
> On 9/20/20 1:10 PM, J. Landman Gay via use-livecode wrote:
>> As an aside, I first thought that this would work:
>> if the htmltext of field "mainText" <> the text of field "mainText" then -- plain text is
>> in the field
>> which does return "false" correctly. But when I set the text of the field to the htmltext of
>> the field and run the same test, it also returns "false". I'm not sure why.
> I don't see why that would ever return true.
> If you set the text of the field to the htmltext of the field, then isn't the htmltext of that
> the htmltext of the htmltext?
Ah. Of course. The scales have been lifted from my eyes.
The htmltext of a field put into the same field:
<p>this is a <b>test</b></p>
The htmltext of that:
<p><p>this is a <b>test</b></p></p>
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode