Skip to content

v2.0.0

Compare
Choose a tag to compare
@peternewnham peternewnham released this 22 Aug 23:38
· 19 commits to master since this release

Breaking Changes

  • ReactHtmlParser now decodes html entities by default
  • html, head and body tags are no longer automatically converted to div tags

Updates

  • Add React v16 as a peer dependency
  • Added new options parameter to ReactHtmlParser function with following properties:
    • decodeEntities (boolean: default true) - whether to decode HTML entities
    • transform (function) - function that can be used to transform parsed elements
  • Tags and attributes with invalid formats are now ignored and prevent React from blowing up

Bug Fixes

  • Fixed bug where inline styles containing colons would not be generated correctly (#9)