forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


HTML to TEXT

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Tue May 17, 2005 6:01 am    Post subject: HTML to TEXT Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue May 17, 2005 7:49 am    Post subject: Reply with quote

There is an @htmltotext function in the VDS Internet Suite I seem to recall.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue May 17, 2005 8:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue May 17, 2005 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group