htmlText question

Peter Haworth pete at lcsql.com
Mon Sep 30 20:11:18 EDT 2013


Hi Kay,
I think I misunderstood your solution.  As you say, it's quite possible to
mix text and htmltext in a field, even on the same line so I think I'm on
the right track now.
Thanks

Pete
lcSQL Software <http://www.lcsql.com>


On Mon, Sep 30, 2013 at 3:30 PM, Kay C Lan <lan.kc.macmail at gmail.com> wrote:

> New stack, 1 fleld, in the msg box:
>
> set the text of word 1 of line 1 of fld 1 to "<b>"
> set the htmlText of word 2 to -1 of line 1 of fld 1 to "<b>This is bold
> text</b>"
> put the htmlText of fld 1 into msg
>
> The output I get is:
>
> <p><b><b> This is bold text</b></p>
>
> So you can either selectively set the text or the htmlText or you can use
> the &xx; codes and set just the htmlText.
>
> As always, a couple of ways to skin the cat.
>
> HTH
>
>
>
>
> On Tue, Oct 1, 2013 at 6:17 AM, Peter Haworth <pete at lcsql.com> wrote:
>
> > I'm setting the htmltext of a field but sections of the text in it which
> > include html tags need to be displayed as regular text (including the
> html
> > tags) instead of formatted html.
> >
> > Any ideas?
> >
> > Pete
> > lcSQL Software <http://www.lcsql.com>
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list