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
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -314,23 +314,21 @@ parse('<br>', {
314
314
315
315
### htmlparser2
316
316
317
-
The default [htmlparser2 options](https://github.com/fb55/htmlparser2/wiki/Parser-options) are:
317
+
Along with the default [htmlparser2 options](https://github.com/fb55/htmlparser2/wiki/Parser-options#option-xmlmode), the parser also sets:
318
318
319
-
```js
319
+
```json
320
320
{
321
-
decodeEntities:true,
322
-
lowerCaseAttributeNames:false
321
+
"lowerCaseAttributeNames": false
323
322
}
324
323
```
325
324
326
325
Since [v0.12.0](https://github.com/remarkablemark/html-react-parser/tree/v0.12.0), the htmlparser2 options can be overridden.
327
326
328
-
The following example enables [`decodeEntities`](https://github.com/fb55/htmlparser2/wiki/Parser-options#option-decodeentities) and [`xmlMode`](https://github.com/fb55/htmlparser2/wiki/Parser-options#option-xmlmode):
327
+
The following example enables [`xmlMode`](https://github.com/fb55/htmlparser2/wiki/Parser-options#option-xmlmode) but disables [`lowerCaseAttributeNames`](https://github.com/fb55/htmlparser2/wiki/Parser-options#option-lowercaseattributenames):
0 commit comments