I understand what it does, but I still don't understand what it's for; I'm
still interested if you're willing to further exemplify where it would be
used.

H


On 1/17/06, Jayson K Hanes <[EMAIL PROTECTED]> wrote:
>
> One thing I've done in the past is to prepend new htmltxt with a fake
> tag, such as "<~~>" and use that as my means to search for, then
> substring after it.
>
> It's just slow and clumsy.
>
> -Jayson
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:flashcoders-
> > [EMAIL PROTECTED] On Behalf Of Jayson K Hanes
> > Sent: Tuesday, January 17, 2006 2:33 PM
> > To: Flashcoders mailing list
> > Subject: RE: [Flashcoders] efficient htmltext.reduce() function?
> > orsimilaridea?
> >
> > Say I have this htmltext
> >
> > "<font face='verdana'><b>hello world</b></font><br><i>abc123<br>hi
> again
> > world<br></i>"
> >
> > And it is being appended with other html lines over time, but no two
> > lines are the same, nor is there a pattern of <br>'s being a common
> > separator per 'line'.
> >
> > I want to be able to execute something like
> > myHtmlText=myHtmlText.reduce(10);
> >
> > And have it become something like:
> >
> > "<i>abc123<br>hi again world<br></i>"
> >
> > Seeing as that's the lowest amount closest to 10% reduction it could
> be
> > trimmed to without breaking the html output when displayed...
> >
> > If it was:
> >
> > "hi again world<br></i>"
> >
> > It wouldn't work as needed.. and would paralyze an htmltext box from
> > showing anymore text from that point forward.
> >
> > Even if just a 50% reduction could be worked out easily.. that'd at
> > least be functional..
> >
> > Do you see now the dilemma?
> >
> > -Jayson
> >
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to