I've seen a number of potential solutions, most involving a separate process or manual intervention. I'm using Jbase, in Universe emulation. This allows me to call subroutines easily from a dictionary. When I build an i-descriptor subroutine, I set it up so I can also call it from Basic programs.

What I envision is like this:

DICT PRODUCT.GOLDCREST HTML.DESC.75

001:  I Return formatted plain text description
002:  SUBR(HTML.DESC.IDESC, @ID, @RECORD, 'FT;75')
003:
004:  Formatted Text
      vmDescription
      vm***************************************************************************
005:  75T
006:  M
007:

LIST PRODUCT.GOLDCREST "PART-124" "SE905" DBL-SPC ID-SUPP ITEM.NO DESC.75

Item No              Description
******************** ***************************************************************************
PART-124             Test Product 4 - Do Not Order<br><ul><li>Uploaded Bullet 1</li><li>Uploaded
                     Bullet 2</li><li>Uploaded Bullet 3</li></ul><ol><li>Uploaded List
                     1</li><li>Uploaded List 2</li><li>Uploaded List 3</li></ol>

SE905                Finally an Oriole feeder with enough nectar, orange halves and jelly
                     capacity to attract and hold Orioles in your yard! When Orioles arrive,
                     they are starving and quickly consume what's on other feeders. When the
                     feeders are empty, they move elsewhere looking for more to eat. This won't
                     happen to you with the new Songbird Essentials Ultimate Oriole Feeder. Feed
                     nectar, jelly and oranges all at the same time. Built in ant moat keeps
                     ants out of the Oriole's treats. Holds 4 halves of real oranges in such a
                     way that ant moat can still be filled with water and be effective. Holds 1
                     quart of nectar which is twice as much as other flat top nectar feeders.
                     Holds 4 times the jelly as other nectar and jelly combo feeders. Easy to
                     fill and clean.<br><br>Watch a video of the Ultimate Oriole Feeder in use
                     now - <a
                     href="" class="moz-txt-link-rfc2396E" href="http://www.youtube.com/watch?v=0cPd7uW0vdg&feature=youtu.be">"http://www.youtube.com/watch?v=0cPd7uW0vdg&feature=youtu.be">Click
                     Here.</a> Made in USA.

LIST PRODUCT.GOLDCREST "PART-124" "SE905" DBL-SPC ID-SUPP ITEM.NO HTML.DESC.75

                     Formatted Text
Item No              Description
******************** ***************************************************************************
PART-124             Test Product 4 - Do Not Order

                     * Uploaded Bullet 1
                     * Uploaded Bullet 2
                     * Uploaded Bullet 3

                     * Uploaded List 1
                     * Uploaded List 2
                     * Uploaded List 3

                     Made in USA.

SE905                Finally an Oriole feeder with enough nectar, orange halves and jelly
                     capacity to attract and hold Orioles in your yard! When Orioles arrive,
                     they are starving and quickly consume what's on other feeders. When the
                     feeders are empty, they move elsewhere looking for more to eat. This won't
                     happen to you with the new Songbird Essentials Ultimate Oriole Feeder. Feed
                     nectar, jelly and oranges all at the same time. Built in ant moat keeps
                     ants out of the Oriole's treats. Holds 4 halves of real oranges in such a
                     way that ant moat can still be filled with water and be effective. Holds 1
                     quart of nectar which is twice as much as other flat top nectar feeders.
                     Holds 4 times the jelly as other nectar and jelly combo feeders. Easy to
                     fill and clean.

                     Watch a video of the Ultimate Oriole Feeder in use now -
                     http://www.youtube.com/watch?v=0cPd7uW0vdg&feature=youtu.be/ Click Here.
                     Made in USA.

Basic source code to return formatted plain text description to calling program

TASK                            = 'FT'
DESC.WIDTH                      = '75'
PARAM.3                         = ''
PARAM.4                         = ''
*
RESULT                          = ''
HTML.DESC.PARAMS                = ''
HTML.DESC.PARAMS<1,1>           = TASK                                           ;* Task              - formatted text
HTML.DESC.PARAMS<1,2>           = DESC.WIDTH                                     ;* Description width - 75
HTML.DESC.PARAMS<1,3>           = PARAM.3                                        ;* undefined
HTML.DESC.PARAMS<1,4>           = PARAM.4                                        ;* undefined
*
CALL HTML.DESC.IDESC (DESC.FORMATTED.TEXT, PRODUCT.GOLDCREST.ID, PRODUCT.GOLDCREST.ITEM, HTML.DESC.PARAMS)

PRODUCT.GOLDCREST.ITEM<3> =
Test Product 4 - Do Not Order<br><ul><li>Uploaded Bullet 1</li><li>Uploaded Bullet 2</li><li>Uploaded Bullet 3</li></ul><ol><li>Uploaded List 1</li><li>Uploaded List 2</li><li>Uploaded List 3</li></ol><br>Made in USA.

Returned formatted desc (75 column):
Test Product 4 - Do Not Order] ]* Uploaded Bullet 1]* Uploaded Bullet 2]* Uploaded Bullet 3] ]* Uploaded List 1]* Uploaded List 2]* Uploaded List 3] ]Made in USA.

BTW Dave, the webtoolhub page actually didn't work very well.

Thanks for all the suggestions,
Charlie


On 10-24-2015 10:06 AM, David Grenfell wrote:
Charlie:
 
I found this, but didn’t do any checking.  hope it helps.
 
www.webtoolhub.com/tn561393-html-to-text-converter.aspx
Dave
 
Sent: Friday, October 23, 2015 11:39 AM
Subject: Need To Convert HTML To Plain Text
 
Hi All,

I am looking for a routine to convert HTML to plain text with formatting, etc. I'm not going to do anything real fancy like whole pages, complex tables, images or anything like that. I just want to convert a fairly simple product description (single or multiple attribute) to a value mark delimited attribute to use in dictionary listings or program displays.

I've Googled everything I can think of and have come up dry. I know I could write one myself, but if someone else already has and is willing to share, I won't need to reinvent the wheel.

Thanks!
Charlie Noah


--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to