Open topic with navigation

# extract_text

The `extract_text` function uses KeyView 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 KeyView 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);

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm