Text-extractor Macro

Description

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

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

 

 


Find answers from the community.

Ask a question to the community.

Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.