GetText

 

Description

 

Retrieve a range of “pure” text from the page. Pure text has had all HTML tags removed. All whitespace runs (including newlines) have been collapsed to single spaces except for whitespace in PRE sections.

 

Arguments

 

Name

Type

I/O

Description

URL

String

In

The page of interest (blank for the current page).

StartOffset

Long Integer

In

The offset of the first byte of pure text to be retrieved.

Length

Long Integer

In

The number of bytes to retrieve.

 

Return Value

 

String: the requested text.

 

Remarks

 

This method can be applied to the current visible page or to any other page in cache.

 

Use GetTextSize to get the size of available text.

 

Pure text in PRE sections and plain text from non-HTML pages is identical to the raw text (as retrieved by the GetContent method).