Skip to content

Releases: jahilldev/preact-parser

1.3.7

25 May 13:06
Compare
Choose a tag to compare
  • Fixed <img /> srcset attributes breaking due to included ,
  • Improved handling of data-* attributes and some edge cases
  • Fixed href attribute breaking when url included =

1.3.5

25 May 10:58
Compare
Choose a tag to compare
  • Fixed an error where html comments, e.g <!-- comment -->, where causing an error while parsing server side
  • Now input html strings are sanitised prior to being run through the parser function

1.3.4

19 May 15:36
Compare
Choose a tag to compare
  • Adjusted handling of &nbsp; to use unicode instead of a space, e.g

1.3.3

15 May 16:23
Compare
Choose a tag to compare
  • Align server HTML parser with behaviour of browser based DOMParser, when encountering &nbsp;
  • Update supported node version to v16.x

1.3.2

21 Dec 15:36
Compare
Choose a tag to compare
  • General config update

1.3.1

09 Feb 12:04
Compare
Choose a tag to compare
  • General maintenance release

1.3.0

28 Jan 10:06
Compare
Choose a tag to compare
  • BREAKING CHANGE Switched exported function from html to parse
  • Updated README and unit tests

1.2.0

27 Jan 16:01
Compare
Choose a tag to compare
  • Fixed issue #1, where word spacing was being incorrectly removed
  • Improved trim string logic to only remove line breaks, and double spaces

1.1.0

21 Jan 11:45
Compare
Choose a tag to compare
  • Exports an html() function that accepts a string, and returns a Preact VDom tree.
  • Added example instructions to README