Closed GokulSNath closed 1 year ago
The package creates a span node that wraps around text, right? what if a dev wants the text to be shown inside a "p" tag or any other tag, or if someone wants just the text and nothing else, can we handle this scenario as well?
@GokulSNath check out highlightTag/unhighlightTag props: https://github.com/bvaughn/react-highlight-words#props
highlightTag
unhighlightTag
The package creates a span node that wraps around text, right? what if a dev wants the text to be shown inside a "p" tag or any other tag, or if someone wants just the text and nothing else, can we handle this scenario as well?