1.0.0 • Published 3 years ago

@gene6/highlight-pipe v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Adds highlighting to parts of text that match your search string or array of string.

Usage:

<div [innerHTML]="description | highlight:searchText"></div>

searchText can be a string or an array of string

Example:

{{ 'my text to highlight' | highlight:'text' }}

formats to: my <mark>text</mark> to highlight

{{ 'my text to highlight':[ 'igh', 'text'] }}

formats to: my <mark>text</mark> to h<mark>igh</mark>l<mark>igh</mark>t

1.0.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago