Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add options argument to ReactHtmlParser function
- Loading branch information
1 parent
160f206
commit 2b468f6
Showing
9 changed files
with
92 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"es2015" | ||
], | ||
"plugins": [ | ||
"transform-object-assign" | ||
"transform-object-assign", | ||
"transform-object-rest-spread" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Change Log | ||
|
||
## v2.0.0 | ||
### Breaking Changes | ||
- ReactHtmlParser now decodes html entities by default | ||
### Updates | ||
- Add React v16 as a peer dependency | ||
- Added options parameter to ReactHtmlParser function with `decodeEntities` option (default true) | ||
|
||
## v1.0.3 | ||
### Updates | ||
- Added React v15 as a peer dependency | ||
### Bug Fixes | ||
- Match boolean attributes when defined with upper or lower case characters (#5) | ||
|
||
## v1.0.2 | ||
### Bug Fixes | ||
- Don't add children to void elements such as img or br (#1) | ||
- Correctly render boolean attributes - disabled, checked, etc (#3) | ||
|
||
## v1.0.0 | ||
### Initial Release | ||
- Render HTML elements and text | ||
- Map HTML attribute names to React HTML prop names | ||
- Convert inline style strings to React style object format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters