Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 985 Bytes

text-highlight.pipe.md

File metadata and controls

33 lines (23 loc) · 985 Bytes
Title Added Status
Text Highlight pipe
v2.0.0
Active

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