We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca29aa6 commit 4a0fc7eCopy full SHA for 4a0fc7e
README.md
@@ -54,7 +54,7 @@ $ yarn add html-react-parser
54
55
## Usage
56
57
-Given you have `html-react-parser` imported:
+Given `html-react-parser` is imported:
58
59
```js
60
// ES Modules
@@ -89,13 +89,15 @@ class App extends Component {
89
Parse nested elements:
90
91
92
-parse('<ul><li>text</li></ul>');
+parse('<ul><li>item</li></ul>');
93
```
94
95
Parse element with attributes:
96
97
98
-parse('<hr id="foo" class="bar" data-baz="qux">');
+parse(
99
+ '<hr id="foo" class="bar" data-attr="baz" custom="qux" style="top:42px;">'
100
+);
101
102
103
### Options
0 commit comments