| View previous topic :: View next topic |
| Author |
Message |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Tue May 17, 2005 6:01 am Post subject: HTML to TEXT |
|
|
Does anybody know of any DLLS or code that will work to convert HTML to readable text. I think string.dll will do it but I so far have been unable to get it to work. I would like to build an email responder that would convert webpages to text and email it to the person that sent the email but the only programs I can find to do this realiably are old dos programs which I really dont wish to call from the VDS script for obvious reasons. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue May 17, 2005 7:49 am Post subject: |
|
|
There is an @htmltotext function in the VDS Internet Suite I seem to recall. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Tue May 17, 2005 8:07 am Post subject: |
|
|
String.DLL has a StripTags function which will remove tags from your HTML code. That will work nicely with
normal text passages but it is no real conversion as such coz more complicated elements such as tables
and lists will not be retained. True HTML conversion is no simple task but you could probably go a long way with
RegExs for converting tables etc. and StripTags to do the rest.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue May 17, 2005 2:50 pm Post subject: |
|
|
Otherwise, it can be done without any dll support and just using native
VDS commands and functions.
You should be able to find an example in the source code section of the
main VDS World site.
-Garrett |
|
| Back to top |
|
 |
|