Folks, I'm hoping this is a simple question...
If I have a field which contains html text (coded using "put the HTMLtext of ... into ...)
How do I get this text back into a readable format, i.e. minus the html tags?
I've seen code which contains "set the HTMLtext of ... to ..." but I can't make that work.
TIA for any help,
--paul
Converting back from HTMLtext...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Converting back from HTMLtext...
Hi Paul,
if you dont want the HTMLtext, then leave the HTML stuff, also in the syntax
...
put the HTMLtext of fld "the one with html in it" into tHTMLText
put the TEXT of fld "the one with html in it" into tPlainText
...
Best
Klaus
if you dont want the HTMLtext, then leave the HTML stuff, also in the syntax

...
put the HTMLtext of fld "the one with html in it" into tHTMLText
put the TEXT of fld "the one with html in it" into tPlainText
...
Best
Klaus
Re: Converting back from HTMLtext...
Klaus- If I understand the OP correctly here (NB: I haven't had enough caffeine yet, so this may not be correct) the htmltext in the field is the result of doing something like "put the htmltext of..." into a field.
In that case, getting back to a text format would be a matter of
(assuming that the htmltext is in field 1)
In that case, getting back to a text format would be a matter of
(assuming that the htmltext is in field 1)
Code: Select all
set the htmltext of field 2 to field 1
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
Re: Converting back from HTMLtext...
Hm, yes, I may have misunderstood the problem 

Re: Converting back from HTMLtext...
Okay, thanks guys.
In...
... I had fields 2 & 1 the wrong way round.
All fixed now!
--paul
In...
Code: Select all
set the htmltext of field 2 to field 1
All fixed now!
--paul