Skip to content

Releases: jahilldev/preact-parser

1.3.7

Choose a tag to compare

@jahilldev jahilldev released this 25 May 13:06
  • 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

Choose a tag to compare

@jahilldev jahilldev released this 25 May 10:58
  • 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

Choose a tag to compare

@jahilldev jahilldev released this 19 May 15:36
  • Adjusted handling of &nbsp; to use unicode instead of a space, e.g

1.3.3

Choose a tag to compare

@jahilldev jahilldev released this 15 May 16:23
  • Align server HTML parser with behaviour of browser based DOMParser, when encountering &nbsp;
  • Update supported node version to v16.x

1.3.2

Choose a tag to compare

@jahilldev jahilldev released this 21 Dec 15:36
  • General config update

1.3.1

Choose a tag to compare

@jahilldev jahilldev released this 09 Feb 12:04
  • General maintenance release

1.3.0

Choose a tag to compare

@jahilldev jahilldev released this 28 Jan 10:06
  • BREAKING CHANGE Switched exported function from html to parse
  • Updated README and unit tests

1.2.0

Choose a tag to compare

@jahilldev jahilldev released this 27 Jan 16:01
  • 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

Choose a tag to compare

@jahilldev jahilldev released this 21 Jan 11:45
  • Exports an html() function that accepts a string, and returns a Preact VDom tree.
  • Added example instructions to README