htmlText question

Peter Haworth pete at lcsql.com
Tue Oct 1 01:52:55 CEST 2013


Thanks Kay. This seems like I need to know the html tags that are in the
text, which I don't.

Now if the htmlText property recognized the <code> tag, I'd be home free!

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


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

> Actually, using the textStyle is another option:
>
> 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>"
> set the text of line 2 of fld 1 to "this is <i>italics</i>"
> set the textStyle of token -4 of line -1 of fld 1 to italic
> put the htmlText of fld 1 into msg
>
>
> On Tue, Oct 1, 2013 at 6:30 AM, 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