ConvertXHTMLToText()
Syntax
Function ConvertXHTMLToText(ByVal fieldValue As String, Optional ByVal
trackLinks As Boolean = True) As String
Parameters
| Parameter | Description |
|---|---|
| The value of the XHTML field that you wish to convert. |
| Set to |
Description
This method converts an XHTML field (usually a Format Area) into plain text. URLs can be converted to the actual URL that tracks link clicking, or to the URL that the tracking page redirects to. You can configure this by using the optional second parameter. If you set it to False, normal hyperlinks will appear, Component links are not resolved, and visits to that URL will not be tracked.
The XHTML is converted using an XSLT found in a file ConvertXHTMLToText.xslt. If you want to change the way in which Outbound E-mail strips XHTML, modify this file. The ConvertXHTMLToText.xslt file is located in the Core subfolder of the Outbound E-mail root folder (defaults to c:\Program Files\Tridion\TMS\).