alfresco-ng2-components/docs/core/pipes/text-highlight.pipe.md
Andy Stark 5fc05da7aa [ADF-4152] Updated folder structure of core docs (#4415)
* [ADF-4152] Moved core library docs into subfolders

* [ADF-4152] Moved core library docs into subfolders

* [ADF-4152] Manual fixes to core doc file links

* [ADF-4152] Further automatic + manual link tidying
2019-03-12 14:20:20 +00:00

977 B

Title, Added, Status
Title Added Status
Text Highlight pipe v2.0.0 Active

Text Highlight pipe

Adds highlighting to words or sections of text that match a search string.

Basic Usage

<div>
    Some rude words have been detected in your summary: {{ summary | highlight:rudeWordList }}
</div>

Details

The pipe's parameter is a string to search for in the text. Any occurrences of the string will be highlighted with added HTML (see the Highlight Transform service for more information about how this is implemented). The parameter can contain spaces, in which case each separate "word" in the string will be highlighted individually.

See also