You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ See the `example/` directory for a runnable example.
105
105
106
106
## Why?
107
107
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.
0 commit comments