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
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -209,7 +209,7 @@ parse('<br>', {
209
209
210
210
> [!NOTE]
211
211
>
212
-
> The index will restart at 0 when traversing the node's children so don't rely on index being a unique key. See[#1259](https://github.com/remarkablemark/html-react-parser/issues/1259#issuecomment-1889574133).
212
+
> The index will restart at 0 when traversing the node's children so don't rely on index being a unique key (see[#1259](https://github.com/remarkablemark/html-react-parser/issues/1259#issuecomment-1889574133)).
213
213
214
214
#### replace with TypeScript
215
215
@@ -535,19 +535,19 @@ No, this library does **not** sanitize HTML (see [#124](https://github.com/remar
535
535
536
536
### Are `<script>` tags parsed?
537
537
538
-
Although `<script>` tags and their contents are rendered on the server-side, they're not evaluated on the client-side. See[#98](https://github.com/remarkablemark/html-react-parser/issues/98).
538
+
Although `<script>` tags and their contents are rendered on the server-side, they're not evaluated on the client-side (see[#98](https://github.com/remarkablemark/html-react-parser/issues/98)).
539
539
540
540
### Attributes aren't getting called
541
541
542
-
The reason why your HTML attributes aren't getting called is because [inline event handlers](https://developer.mozilla.org/docs/Web/Guide/Events/Event_handlers) (e.g., `onclick`) are parsed as a _string_ rather than a _function_. See[#73](https://github.com/remarkablemark/html-react-parser/issues/73).
542
+
The reason why your HTML attributes aren't getting called is because [inline event handlers](https://developer.mozilla.org/docs/Web/Guide/Events/Event_handlers) (e.g., `onclick`) are parsed as a _string_ rather than a _function_ (see[#73](https://github.com/remarkablemark/html-react-parser/issues/73)).
543
543
544
544
### Parser throws an error
545
545
546
-
If the parser throws an error, check if your arguments are valid. See["Does invalid HTML get sanitized?"](#does-invalid-html-get-sanitized).
546
+
If the parser throws an error, check if your arguments are valid (see["Does invalid HTML get sanitized?"](#does-invalid-html-get-sanitized)).
547
547
548
548
### Is SSR supported?
549
549
550
-
Yes, server-side rendering on Node.js is supported by this library. See[demo](https://replit.com/@remarkablemark/html-react-parser-SSR).
550
+
Yes, server-side rendering on Node.js is supported by this library (see[demo](https://replit.com/@remarkablemark/html-react-parser-SSR)).
551
551
552
552
### Elements aren't nested correctly
553
553
@@ -584,11 +584,11 @@ See [#62](https://github.com/remarkablemark/html-react-parser/issues/62) and [ex
584
584
585
585
### TS Error: Property 'attribs' does not exist on type 'DOMNode'
586
586
587
-
The TypeScript error occurs because `DOMNode` needs to be an instance of domhandler's `Element`. See [migration](#migration) or [#199](https://github.com/remarkablemark/html-react-parser/issues/199).
587
+
The TypeScript error occurs because `DOMNode` needs to be an instance of domhandler's `Element` (see [migration](#migration) or [#199](https://github.com/remarkablemark/html-react-parser/issues/199)).
588
588
589
589
### Can I enable `trim` for certain elements?
590
590
591
-
Yes, you can enable or disable [`trim`](#trim) for certain elements using the [`replace`](#replace) option. See [#205](https://github.com/remarkablemark/html-react-parser/issues/205).
591
+
Yes, you can enable or disable [`trim`](#trim) for certain elements using the [`replace`](#replace) option (see [#205](https://github.com/remarkablemark/html-react-parser/issues/205)).
Then upgrade to the latest version of [typescript](https://www.npmjs.com/package/typescript). See[#748](https://github.com/remarkablemark/html-react-parser/issues/748).
626
+
Then upgrade to the latest version of [typescript](https://www.npmjs.com/package/typescript) (see[#748](https://github.com/remarkablemark/html-react-parser/issues/748)).
0 commit comments