tiptap-php icon indicating copy to clipboard operation
tiptap-php copied to clipboard

Ensure number strings are treated as HTML

Open daun opened this issue 5 months ago • 2 comments

  • A pure number string like 1999 will currently be interpreted as valid JSON
  • This will fail in subsequent steps because a JSON object/array is expected, instead of the number 1999
  • This change will mark any string starting with a number as HTML going forward
  • An alternative could be to expect { or [ as first character to mark things as JSON
  • I've added a test, but can't get it to run locally because of PHP deprecations in Pest :(

daun avatar Jul 09 '25 13:07 daun