HtmlToText Method

Convert html body text to plain text.

[Syntax]
C++: HRESULT HtmlToText( BSTR Html, BSTR* pVal )
Visual Basic: HtmlToText( Html As String ) As String
C#: string HtmlToText( string Html )

Parameters

Html

Html body text to be converted.

Return Value

This method returns the converted plain text.

Remarks

This method removes all html tag from source string.

Usage Example

[Visual Basic]
Dim POPMSG As Object
Dim plainText
Set oMsg = CreateObject("ANPOP.POPMSG")
plainText = oMsg.HtmlToText("<html>...body text...</html>") 

2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.