HTMLText back to normal text

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Pebah
Posts: 23
Joined: Mon Aug 01, 2011 9:35 pm

HTMLText back to normal text

Post by Pebah » Mon Sep 19, 2011 7:17 pm

I'm putting the htmlText of the styled text of field 1 into field 2. I modify the HTML of the second field. Now I want to put that new HTML back into field 1 displayed as regular styled text. Is there a command for this?

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: HTMLText back to normal text

Post by mwieder » Mon Sep 19, 2011 7:31 pm

set the htmlText of field 1 to the htmlText of field 2

Pebah
Posts: 23
Joined: Mon Aug 01, 2011 9:35 pm

Re: HTMLText back to normal text

Post by Pebah » Mon Sep 19, 2011 7:46 pm

That seems to just put the contents of field 2 into field 1 (the raw HTML).

Pebah
Posts: 23
Joined: Mon Aug 01, 2011 9:35 pm

Re: HTMLText back to normal text

Post by Pebah » Mon Sep 19, 2011 7:50 pm

I've got it:
set the HTMLText of field 1 to the text of field ID 2

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: HTMLText back to normal text

Post by mwieder » Mon Sep 19, 2011 8:52 pm

ah - ok, now I see what you're trying to do.

Post Reply