THtmlNode() > Html Text data |
Text node.
Data type: | O | Default: | oTHtmlNode |
:text is a generic Access/Assign variable returning a new text node and optionally assigning textual content to it. The following PRG code demonstrates how HTML text can be created using the :text variable:
oDoc := THtmlDocument():new() ? oDoc:body:toString() ** output // <body> // </body> oDoc:body:text := "Hello" oDoc:body:text := "-World" oDoc:body:text := "!!" ? oDoc:body:toString() ** output // <body>Hello-World!! // </body> !CEND !P[note=Note:] use method :getText() to retrieve the entire text contained in an HTML node. !! ==========================
http://www.xHarbour.com