Skip to content

v4.0.0

Choose a tag to compare

@hirasso hirasso released this 18 Jan 17:51
· 60 commits to main since this release
fb82324

Major Changes

  • 078da1c: Do not convert numeric strings to int|float in jsonAttr()
  • 078da1c: Do not double-encode JSON – instead, use native json_encode flags and htmlspecialchars
  • 078da1c: Always return strings from the attr() and jsonAttr() functions
  • a06033d: Throw if jsonAttr() encounters an error

Patch Changes

  • 7cb9a44: Add tests for double-encoding prevention
  • a06033d: Where possible, prefer named over numeric entities in jsonAttr()
  • e4e2589: Use scoped collect function for illuminate/collections