JamesBowen
19+ years progress programming and still learning.
Hi all.
When we send automated emails from our system, the email contains two parts HTML formated and plain text.
On our database we store the content of the email in two versions, HTML and text. The logistical problem that we have is that we have to maintain two version of identical content but the HTML version contains formatting.
Has anyone developed a process the can take HTML can convert it on the fly into plain text?
I have found a command line tool call HTML2text which does exactly what is says, convert HTML into Text. However it not cross platform compatible. I need a pure ABL solution.
I was thinking about using a SAX/DOM parser to strip out the HTML tags but I could not guaranty the HTML document conforms to the XHTML standard.
Additional Information:
OE 10.1B
Linux RH4 SE.
Many Thanks.
When we send automated emails from our system, the email contains two parts HTML formated and plain text.
On our database we store the content of the email in two versions, HTML and text. The logistical problem that we have is that we have to maintain two version of identical content but the HTML version contains formatting.
Has anyone developed a process the can take HTML can convert it on the fly into plain text?
I have found a command line tool call HTML2text which does exactly what is says, convert HTML into Text. However it not cross platform compatible. I need a pure ABL solution.
I was thinking about using a SAX/DOM parser to strip out the HTML tags but I could not guaranty the HTML document conforms to the XHTML standard.
Additional Information:
OE 10.1B
Linux RH4 SE.
Many Thanks.