THtmlNode() > Html Text methods xHarbour Developers Network  

oTHtmlNode:getText()

Returns the textual content of an HTML node.

Syntax

:getText( [<cCRLF>] ) --> cHtmlText

Arguments

<cCRLF>
This parameter defaults to Chr(13)+Chr(10) so that textual content of nested HTML tags appears in separate text lines.

Description

Method :getText() retrieves the textual content of this HTML node and all subnodes as text string without HTML tags. The text of sub-nodes is separated with <cCRLF>. The expetion are table cells (<td> tags) whose textual content is separated by Chr(9) (TAB).

The returned string may need to be passed to HtmlToAnsi() or HtmlToOem() in order to convert HTML character entities to regular ANSI or OEM characters (e.g. "&amp;" may appear in the returned string which must be translated to "&").


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe