Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxlevel2
minlevel2
typeflat
separatorpipe

Description

Summary

Excerpt

Extracts simple text from HTML content.

For some usage scenarios with various advanced macros, it is useful to be able to get the simple text content from the output of another macro or general HTML content. This macro does this with the same technology used to extract text for the Confluence index as documented in How to make include macro content appear in Confluence search results.

Parameters

  • attributes - Include HTML attributes in the output text. Attributes include values of title, alt, label, summary, and content attributes of normal tags. Defaults to true. Set to false to ignore these attributes and not include them in the output.
  • compress - Remove duplicate words in the output. Defaults to false. Set to true to remove the duplicate words.

Example

No Format
{text-extractor}
[google|http://google.com]
{text-extractor}


No Format
titleResult
google