Skip to content

Commit b435f4a

Browse files
committed
Update readme
1 parent c35e83e commit b435f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ See the `example/` directory for a runnable example.
105105

106106
## Why?
107107

108-
I wanted an easy way to highlight strings within React **without** breaking React's built in string escaping mechanisms. This meant actual string replacement combined with `dangerouslySetInnerHTML` was out of the question.
108+
I wanted an easy way to do string replacement a la `String.prototype.replace` within React components **without** breaking React's built in string escaping functionality. This meant standard string replacement combined with `dangerouslySetInnerHTML` was out of the question.
109109

110110
## API
111111

0 commit comments

Comments
 (0)