Connector Framework Server 25.3
Connector Framework Server Help

# extract_text

The `extract_text` function uses File Content Extraction to extract text from a data string.

## Syntax

    extract_text( data, isHtml)

## Arguments

Argument | Description
--- | ---
`data` | (string) A string containing the data to extract text from.
`isHtml` | (Boolean) Specifies whether the data is a snippet of HTML (default `false`). If the data is a standard HTML document then you do not need to set this argument, because File Content Extraction automatically recognizes HTML documents. You might need to set this argument in cases where the data contains HTML markup but is not a complete document that begins with an `<html>` tag.

## Returns

String. Returns the text extracted from the string.

## Example

    local htmlSnippet = "some <b> html </b> with <i> unwanted </> markup";
    local text = extract_text(htmlSnippet, true);

Copyright 2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Connector Framework Server 25.3

Topic Title: extract_text