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>&lt;p&gt;this is a &lt;b&gt;test&lt;/b&gt;&lt;/p&gt;</p>

Silly me.

--
Jacqueline Landman Gay         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to