Function to encode / decode HTML Text

263 views
Skip to first unread message

Franz

unread,
Jun 14, 2018, 3:35:39 AM6/14/18
to Harbour Users
Hello,
there is a function to encode / decode HTML Text ?
To add lines in XML file I need to convert (for example) "Red & Brown" in "Red & Brown"
Ciao
Franz


JoeC

unread,
Jun 14, 2018, 7:26:40 AM6/14/18
to Harbour Users
c:\users\jlc\utils>hbmk2 -version
Harbour Make (hbmk2) 3.2.0dev (r2018-02-12 09:00)
Copyright (c) 1999-present, Viktor Szakats
https
://github.com/harbour/core/


c
:\users\jlc\utils>hbmk2 -find html
gtwvg
.hbc (installed):
   
WvgHtmlViewer()
hbhttpd
.hbc (installed):
   
UHtmlEncode()
   
UWHtml()
   
UWHtmlNew()
hbtip
.hbc (installed):
   
ANSIToHtml()
   
HtmlToANSI()
   
HtmlToOEM()
   
OEMToHtml()
   
THtmlCleanup()
   
THtmlDocument()
   
THtmlInit()
   
THtmlIsValid()
   
THtmlIterator()
   
THtmlIteratorRegex()
   
THtmlIteratorScan()
   
THtmlNode()
   
THtmlTagType()
   tip_HtmlSpecialChars
()
   tip_HtmlToStr
()
   tip_StrToHtml
()
xhb
.hbc (installed):
   
Greek2Html()
   
HtmlAny2Str()
   
HtmlBrowse()
   
HtmlDecodeUrl()
   
HtmlFormName()
   
HtmlFormObject()
   
HtmlJSCmd()
   
HtmlLinkStyle()
   
HtmlPadL()
   
HtmlPadR()
   
HtmlPageHandle()
   
HtmlPageObject()
   
THtml()
   
THtmlControl()
   
THtmlForm()
   
THtmlFrameSet()

Joe
Message has been deleted

JoeC

unread,
Jun 14, 2018, 7:33:36 AM6/14/18
to Harbour Users
Take a look at the sample programs include with Harbour. Here's an example from my system;

c:\hb32\extras\hbxlsxml>dir /s

 
Volume in drive C is WINDOWS      Serial number is d4d0:ce4e
 
Directory of  C:\hb32\extras\hbxlsxml\*

 
2/17/2018   8:32         <DIR>    .
 
2/17/2018   8:32         <DIR>    ..
 
4/07/2018   6:35         <DIR>    tests
 
2/12/2018   5:00              63  hbxlsxml.hbc
 
2/12/2018   5:00             175  hbxlsxml.hbp
 
2/12/2018   5:00           1,095  hbxlsxml.hbx
 
2/12/2018   5:00          12,261  xlsxml.prg
 
2/12/2018   5:00          10,169  xlsxml_s.prg
 
2/12/2018   5:00          24,819  xlsxml_y.prg
             
48,582 bytes in 6 files and 3 dirs    65,536 bytes allocated

 
Directory of  C:\hb32\extras\hbxlsxml\tests\*

 
4/07/2018   6:35         <DIR>    .
 
4/07/2018   6:35         <DIR>    ..
 
2/12/2018   5:00           9,823  example.prg
 
2/12/2018   5:00           5,437  example2.prg
 
2/12/2018   5:00           3,032  example3.prg
 
2/12/2018   5:00              23  hbmk.hbm


Maybe one of these examples will provide you with assistance to solve your challenge.

Joe


On Thursday, 14 June 2018 03:35:39 UTC-4, Franz wrote:

Franz

unread,
Jun 15, 2018, 3:07:41 AM6/15/18
to Harbour Users
Thanks Joe, 
AnsitoHTML is that I need.
Ciao
Franz

Reply all
Reply to author
Forward
0 new messages